[TYPO3-calendar] Customizing Templates

Mario Matzulla mario at matzullas.de
Wed Jun 7 21:10:56 CEST 2017


Hi Sebastian,

Am 07.06.17 um 16:04 schrieb Wolfertz, Sebastian:
> Hey list!
> 
> New Question: I want to customize templates. Why does the extension provide a way to link to your individual template files through the constants, but does not use those files when called from a template?
> 
> This is in my constants:
> 
> 
> plugin.tx_cal_controller.view.month.monthMiniTemplate = EXT:streit_tmpl_schoenberg/Resources/Private/Templates/Content/Calendar/monthMini.tmpl
> plugin.tx_cal_controller.view.month.monthSmallTemplate = EXT:streit_tmpl_schoenberg/Resources/Private/Templates/Content/Calendar/month_small.tmpl
> 
> This is my monthMini.tmpl
> 
> 
> <!--This is the main template for the miniMonth view-->
> 
> ==Test Mini==
> 
> <div class="view-header">
> 
>        ###MONTH_SMALL|+0###
> 
> </div>
> 
> 
> 
> <!--/month_mini.tmpl-->
> 
> And this is the beginning of my month_small.tmpl
> 
> 
> <!--month_small.tmpl-->
> 
> <!-- ###MONTH_TEMPLATE### start -->
> 
> ==Test Small==
> 
> <table class="month month-small">
> 
> <caption>###MONTH_TITLE###</caption>
> 
> The ==Test Mini== Text does indeed appear on my page.
> But the ==Test Small== does not... I believe the month_small.tmpl that is used is the original file from the extension and not the one I told it to use in the constants.
> 
> Any idea on how to fix that?

Well, please have a look at the typoscript object browser, it is another way to explore your template configuration :)
Which configuration does it show for the setup of plugin.tx_cal_controller.view.month.monthSmallTemplate ?

Regards,
Mario
> 
> Thanks for your time.
> 
> Sebastian,
> Germany
> 



More information about the TYPO3-project-calendar mailing list