[TYPO3-english] socials -> change template path
Robert Wildling
robertwildling at gmail.com
Mon Jun 4 11:56:13 CEST 2012
Hi, thank you for explaining the "magic"!
Do you maybe also know the reason why both of these possibilities work?
plugin.tx_socials {
view {
templateRootPath = fileadmin/_layout/templates/socials
}
}
plugin.tx_socials {
view {
templateRootPath = fileadmin/_layout/templates/socials/
}
}
(one with, one without the last back slash)
Is there a kind of safety mechanism, where extbase double checks for
last back slashes?
Thanks,
Robert
> Hi,
>
> Georg Ringer wrote:
>> Am 03.06.2012 13:28, schrieb Robert Wildling:
>>> Strangely enough TYPO3 doesn't care about whether there is a slash or
>>> not. The really important part is the folder called "Share". My folder
>>> structure is now:
>>
>> feel free to open a bug report (or I will do it)
>
> There is no bug in here, if you have a look again at what I wrote:
>
> fileadmin/_layout/templates/socials
> |-- Templates
> | |-- Controller1
> | `-- Controller2
> | |-- Action1.html
> | |-- Action2.html
> | `-- Show.html<----
> |-- Partials
> `-- Layouts
>
> You have to actually copy the *whole* content of
> typo3conf/ext/your-ext/Resources/Private/Templates/* and this means you
> cannot override a single template by putting it right under the
> Templates directory in fileadmin, you have to copy all existing
> templates including the intermediate "{controller}" directory and then
> do your stuff.
>
> Robert did this:
>
>> Strangely enough TYPO3 doesn't care about whether there is a slash or
>> not. The really important part is the folder called "Share". My
>> folder structure is now:
>>
>> fileadmin/_layout/templates/socials/Share/Show.html
>>
>> with this TS:
>>
>> plugin.tx_socials {
>> view {
>> templateRootPath = fileadmin/_layout/templates/socials/
>> }
>> }
>
> And the "Share" part means that he has a "Share" controller whose action
> is "Show", nothing magic :)
>
> Kind regards
>
More information about the TYPO3-english
mailing list