[TYPO3-english] socials -> change template path

Xavier Perseguers xavier at typo3.org
Sun Jun 3 11:55:27 CEST 2012


Hi Robert,

> I try to change the pathto a template in the socails ext doing this in
> my basic setup.txt:
> 
> plugin.tx_socials {
>   view {
>     templateRootPath = fileadmin/_layout/templates/socials
>     partialRootPath = fileadmin/_layout/templates/socials
>     layoutRootPath = fileadmin/_layout/templates/socials
>   }
> }
> 
> The html-file is named "Show.html"

The config you try to override are "root paths", not "end paths",
meaning you have to have the template/partial/layout structure within
fileadmin/_layout/templates/socials:


fileadmin/_layout/templates/socials
|-- Templates
|   |-- Controller1
|   `-- Controller2
|       |-- Action1.html
|       |-- Action2.html
|       `-- Show.html <----
|-- Partials
`-- Layouts

I guess 1) you did not create the correct directory structure and 2) you
only want to override the action template and not the partials or layout
templates, meaning you should not override

plugin.tx_socials.view.partialRootPath
and
plugin.tx_socials.view.layoutRootPath

HTH

-- 
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