[TYPO3-english] Re: How to get my other FE templates?

2017-05-11 Thread Christian Hackl

No you are not wrong, you can use templates like you wish, but it can be useful 
to have a layout var in the Template-Files :)


In the Template Files you can choose the Layout-File (line one):





{Banner}


{MainContent}






In the Layout File (here: DefaultLayout.html):


 
 
 
   



Layouts are wrapper for the template-file and partials are subparts like header 
- menu - footer and so on.



And sorry but i can't see pictures in this forum, for whatever reason...
___
TYPO3-english mailing list
TYPO3-english@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english


[TYPO3-english] Re: How to get my other FE templates?

2017-05-11 Thread Christian Hackl

ähm, what you want?! or nothing.

If you have this:

layout = TEXT
layout.data = levelfield:-1,backend_layout_next_level,slide
layout.override.field = backend_layout

in the variables than you can use the var 'layout' in your viewhelper e.g.: 
___
TYPO3-english mailing list
TYPO3-english@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english

[TYPO3-english] Re: How to get my other FE templates?

2017-05-10 Thread Christian Hackl

no really answer,  but i think key.data = pagelayout dont work in older typo3 
versions.

you can use the "old" way:

e.g.:


10 = FLUIDTEMPLATE
 10 {
   format = html
   partialRootPath = {$theme.urls.themeResources}Private/Html/Partials/
   layoutRootPath = {$theme.urls.themeResources}Private/Html/Layouts/

   file.cObject = CASE
   file.cObject {
 key.data = levelfield:-1, backend_layout_next_level, slide
 key.override.field = backend_layout

 default = TEXT
 default.value = {$theme.urls.themeResources}Private/Html/OneColumn.html
 pagets__2 = TEXT
 pagets__2.value = 
{$theme.urls.themeResources}Private/Html/NavLeftOneColumn.html
 pagets__3 = TEXT
 pagets__3.value = 
{$theme.urls.themeResources}Private/Html/NavLeftBannerOneColumn.html
   }

   variables {

 layout = TEXT
 layout.data = levelfield:-1,backend_layout_next_level,slide
 layout.override.field = backend_layout
 .
 .
 .


and you dont need fe-template switch in the backend If they are dependent on 
each other:

TCEFORM.pages {
   layout.disabled = 1
}
___
TYPO3-english mailing list
TYPO3-english@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english