Last active
March 4, 2016 19:55
-
-
Save htuscher/c628c85ef665f170157b to your computer and use it in GitHub Desktop.
TYPO3 Flux render column in page menu
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {namespace v=FluidTYPO3\Vhs\ViewHelpers} | |
| <f:layout name="Page" /> | |
| <v:page.menu entryLevel="0"> | |
| <ul class="nav-main"> | |
| <f:for each="{menu}" as="subPage" iteration="mainIteration"> | |
| <li class="{f:if(condition:'{subPage.hasSubPages}', then:'hassub')}{f:if(condition:'{mainIteration.isFirst}', then:' first')}{f:if(condition:'{mainIteration.isLast}', then:' last')} {subPage.navigation_layout}"> | |
| <f:link.page pageUid="{subPage.uid}">{subPage.title}</f:link.page> | |
| </li> | |
| <v:content.render column="3" pageUid="{subPage.uid}" /> | |
| </f:for> | |
| </ul> | |
| </v:page.menu> | |
| <f:render section="Main" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <div xmlns:f="http://typo3.org/ns/TYPO3/Fluid/ViewHelpers" xmlns:v="http://typo3.org/ns/FluidTYPO3/Vhs/ViewHelpers" | |
| xmlns:flux="http://typo3.org/ns/FluidTYPO3/Flux/ViewHelpers" | |
| xmlns="http://www.w3.org/1999/xhtml" | |
| lang="en"> | |
| <f:layout name="Page"/> | |
| <f:section name="Configuration"> | |
| <flux:form id="standard"> | |
| <!-- Insert fields, sheets, grid, form section objects etc. here, in this flux:form tag --> | |
| </flux:form> | |
| <flux:grid> | |
| <!-- Edit this grid to change the "backend layout" structure --> | |
| <flux:grid.row> | |
| <flux:grid.column colPos="3" name="menu"/> | |
| </flux:grid.row> | |
| <flux:grid.row> | |
| <flux:grid.column colPos="0" colspan="3" name="main"/> | |
| <flux:grid.column colPos="1" name="right"/> | |
| </flux:grid.row> | |
| </flux:grid> | |
| </f:section> | |
| <f:section name="Main"> | |
| <h1>I am a page template!</h1> | |
| <p> | |
| My template file is EXT:menu_content_demo/Resources/Private/Page/Standard.html. | |
| </p> | |
| <div style="float: left; width: 75%;"> | |
| <h2>Content main</h2> | |
| <v:content.render column="0"/> | |
| </div> | |
| <div style="float: left; width: 25%;"> | |
| <h2>Content right</h2> | |
| <v:content.render column="1"/> | |
| </div> | |
| </f:section> | |
| </div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment