[TYPO3-english] socials -> change template path

Xavier Perseguers xavier at typo3.org
Mon Jun 4 07:56:03 CEST 2012


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

-- 
Xavier Perseguers
Release Manager TYPO3 4.6

TYPO3 .... inspiring people to share!
Get involved: http://typo3.org



More information about the TYPO3-english mailing list