[TYPO3-calendar] Customizing Templates
Wolfertz, Sebastian
S.Wolfertz at streit-online.de
Thu Jun 8 08:06:06 CEST 2017
Hi Mario,
> 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 ?
TypoScript Object Browser says:
[plugin]
[tx_cal_controller]
[view]
[month]
[monthMiniTemplate] = EXT:streit_tmpl_schoenberg/Resources/Private/Templates/Content/Calendar/monthMini.tmpl
[monthSmallTemplate] = EXT:streit_tmpl_schoenberg/Resources/Private/Templates/Content/Calendar/month_small.tmpl
Hope this helps somehow pinning down the bug. (Or my error)
Best regards,
Sebastian
-----Ursprüngliche Nachricht-----
Von: typo3-project-calendar-bounces at lists.typo3.org [mailto:typo3-project-calendar-bounces at lists.typo3.org] Im Auftrag von Mario Matzulla
Gesendet: Mittwoch, 7. Juni 2017 21:11
An: typo3-project-calendar at lists.typo3.org
Betreff: Re: [TYPO3-calendar] Customizing Templates
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/Calenda
> r/monthMini.tmpl
> plugin.tx_cal_controller.view.month.monthSmallTemplate =
> EXT:streit_tmpl_schoenberg/Resources/Private/Templates/Content/Calenda
> r/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
>
_______________________________________________
TYPO3-project-calendar mailing list
TYPO3-project-calendar at lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-calendar
More information about the TYPO3-project-calendar
mailing list