[TYPO3-german] cal extension: welche Template Files für was?

Philipp Gampe typo3.list at philippgampe.info
Thu Oct 28 18:25:59 CEST 2010


On Thu, 28 Oct 2010 17:42:01 +0200, Markus wrote:

> Hallo,
> 
> wir nutzen die Extension "cal". Die Extension hat eine riesige Zahl an
> Template-Files und ich durchblicke partout nicht das System, welches
> dahintersteckt.
> 
> Sprich: welches Template-File ist wofür da?

Schau mal in die cal newsgroup typo3.projects.cal. Dort hat Mario gerade 
eben die Systematik erklärt.

Quote:
This has been described already a couple times, but let me do it again:

cal has a mvc (model-view-controller) structure, the same corresponds to
the templates. We have view templates describing, for example how a day,
week, month, year (multiple months), list, event, ... -view should look
like. In those views you want to show events or other models. The
description for those models are located in ?_model.tmpl files. Those
?_model.tmpl files contain subparts for the different views.

There are also some templates, which get injected if the according marker
gets inserted: list, month (small, medium, large), sidebar and
calendar_nav.

In the view templates, you can find {VIEW}_TEMPLATE subparts, which are
essential for the view. There can be other subpart markers for additional
configuration though.

I hope this helps a bit.

Regards,
Mario

/Quote

> Beispiel: ich habe ein cal Content Element auf meiner Seite, das eine
> Terminliste anzeigt. Welche Template-Files sind hier involviert? In
> welchen TS-Konstanten werden die Template-Files gesetzt?

vermutlich die Liste (View), sowie immer die event_model.tmpl

> Aus einer uralten cal-Version nutzen wir noch eine Datei
> "phpicalendar.templ". Die gibt's aber in der neuesten Version nicht
> mehr... Stattdessen gibt's die Dateien "event.tmpl" und
> "event_model.tmpl"

event_model.tmpl heißt es jetzt. event.tmpl ist wieder die View.

Du kannst die Marker in den View template fast beliebig setzen, aber dann 
musst du auch dafür sogar, dass das TS an die entsprechende Stelle 
kopiert wird (also dort wo auch die View ist).

Schau mal wie es in dem Monats Template gelöst ist, dort ist auch eine 
Liste drin.

Viele Grüße
Phil


More information about the TYPO3-german mailing list