Code example
This is an example to show how you could specify a fluidcontent element as only allowedContentType
- Description
- allowedContentTypes
- Author
- jmverges
- Creation date
- Extensions
- FluidTYPO3.Flux FluidTYPO3.Fluidcontent FluidTYPO3.Fluidpages
- Tags
- Content
- Files
- gistfile1.txt
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="http://www.w3.org/1999/xhtml" lang="en" | |
| xmlns:v="http://typo3.org/ns/FluidTYPO3/Vhs/ViewHelpers" | |
| xmlns:f="http://typo3.org/ns/TYPO3/Fluid/ViewHelpers" | |
| xmlns:flux="http://typo3.org/ns/FluidTYPO3/Flux/ViewHelpers"> | |
| <f:layout name="Content" /> | |
| <f:section name="Configuration"> | |
| <flux:form id="container"> | |
| <flux:form.option name="group" value="Layout" /> | |
| <flux:form.option name="Layout" value="{sorting: 1}" /> | |
| <flux:field.select name="settings.container.tag" | |
| items="div,header,main,footer,nav" | |
| default="div"> | |
| </flux:field.select> | |
| <flux:field.input name="settings.container.id" size="10" /> | |
| <flux:field.select name="settings.container.class" | |
| items="container,container-fluid" | |
| default="container"> | |
| </flux:field.select> | |
| </flux:form> | |
| <flux:grid> | |
| <flux:grid.row> | |
| <flux:grid.column name="column1"> | |
| <flux:form.variable name="allowedContentTypes" value="fluidcontent_content" /> | |
| <flux:form.variable name="Fluidcontent" value="{allowedContentTypes: 'simplicity_application_layout:Container.html'}" /> | |
| </flux:grid.column> | |
| </flux:grid.row> | |
| </flux:grid> | |
| </f:section> | |
| <f:section name="Preview"> | |
| </f:section> | |
| <f:section name="Main"> | |
| <v:tag name="{settings.container.tag}" class="{settings.container.class}" id="{settings.container.id}" hideIfEmpty="1"> | |
| <flux:content.render area="column1" /> | |
| </v:tag> | |
| </f:section> | |
| </div> |