[TYPO3-news] [TYPO3-project-news] Re: [TYPO3-project-news] Re: [TYPO3-project-news] own template

bernd wilke t3ng at bernd-wilke.net
Wed Oct 28 08:20:37 CET 2015


Am 27.10.15 um 08:55 schrieb Karl-Heinz Fischbach:
> Hi,
> I have done some intensive testing.
>
> Based on your advice Bernd, I went back to the original setting with
> some modifications in the path (due to my convenience).
>
> [code]
>
> plugin.tx_news {
>         view {
>                 templateRootPaths >
>                 templateRootPaths {
>                         0 = EXT:news/Resources/Private/Templates/
>                         1 = fileadmin/templates/ext/news/
>                 }
>                 partialRootPaths >
>                 partialRootPaths {
>                         0 = EXT:news/Resources/Private/Partials/
>                         1 = fileadmin/templates/ext/news/partials/
>                 }
>                 layoutRootPaths >
>                 layoutRootPaths {
>                         0 = EXT:news/Resources/Private/Layouts/
>                         1 = fileadmin/templates/ext/news/layouts/
>                 }
>         }
> }
> [/code]
>
> Now I would expect tx_news to look for the file "List.html" in the path
> "fileadmin/templates/ext/news/" - but it does not.
>
> The docu tells me under "Partials" (not anywher under Templates): "If
> you open the template News/List.html you will see the partial ......".
>
> Therefore I created a new directory "News" appended to the path shown  -
> and what shall I say - tx_news found the template.
>
> Now the docu says also under Partials: "This will embed the output of
> the partial which is located at Partials/List/Item.html ....."
>
> Following the same rule as above, I added a directory "Partials"
> appended to the path above and expected tx_news to look for the partials
> there - but the partial was not found.
> Partials are found in the original path as decribed in the TS.

the fallback is the intention of the configuration with multiple pathes.
but you need to place your files in the correct folders.

as the configured path to the partials ended with 'Partials' the 
mentioned path 'Partials/List/Item.html' propably lists the last folder 
of the partialRootPaths and added the older 'List' with a file 
'Item.html'. and keep the uppercase first characters of these files!

>
> I am sure, I am mixing up some things or have a setting which is really
> stupid.
>
> But in case I am right with my findings, I would like to encourage the
> tx_news people to clarify the docu at the point where it says "You can
> use the following TypoScript in the constants to change the paths...."
> with some more details on the real paths tx_news searches for files.
>
> If I am totally wrong, please show me on the correct trail.

as we have mentioned multiple times: take care about your page TSconfig!

you cannot neglect everything you don't know and expect a smoothless 
working. especially in the beginning TYPO3 is complicated and has a lot 
of unusual vocabulary you need to learn.


bernd
-- 
http://www.pi-phi.de/cheatsheet.html


More information about the TYPO3-project-news mailing list