简体   繁体   中英

Calendar Base Extension Template

I am new to TYPO3 and I'd like to change the way the extension "Calendar Base (cal)" outputs an event. I would like to change the HTML-Output.

Where can I do this in the current version of Calendar Base and TYPO3 8.5.1?

And how can I select different templates for the same view? I want to choose between two HTML-Outputs for eg the list view.

Can anybody please help me?

Greeting! Malte

Templates are located in EXT:cal/Resources/Private/Templates/v1/

Copy the ones, you want to change to a place somewhere in fileadmin/... Then change the copied templates as you need it.

Change the path to the template in TypoScript constants. For example:

plugin.tx_cal_controller.view.list.listTemplate = fileadmin/Templates/Html/ExtCal/list.tmpl

For different list views use a condition in TypoScript constants for another list template. For example:

[PIDinRootline = 40]
    plugin.tx_cal_controller.view.list.listTemplate = fileadmin/Templates/Html/ExtCal/list_aktuell.tmpl
[GLOBAL]

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM