Library · Code examples

Using allowedContentTypes for Fluidcontent

This is an example to show how you could specify a fluidcontent element as only allowedContentType

Description allowedContentTypes
Author jmverges
Creation date 2015-03-14T13:08:59.000Z
Extensions
  1. FluidTYPO3.Flux
  2. FluidTYPO3.Fluidcontent
  3. FluidTYPO3.Fluidpages
Tags
  1. Content
Files
  1. gistfile1.txt
<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>
view raw gistfile1.txt hosted with ❤ by GitHub