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

Christian Hackl hackl.chris at googlemail.com
Thu May 11 15:20:51 CEST 2017


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

<f:layout name="DefaultLayout" />
<f:section name="content">
	<f:render partial="Header_own" arguments="{_all}" />
		<div id="banner">
			<f:format.raw>{Banner}</f:format.raw>
		</div>
		<main id="main">
			<f:format.raw>{MainContent}</f:format.raw>
		</main>
	<f:render partial="Footer_own" arguments="{_all}" />
</f:section>



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

<div class="outerWrap">
      <section id="mainWrapper" class="oneColumn">
    	 <f:render section="content" />
      </section>
    </div>



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


More information about the TYPO3-english mailing list