Skip to content

Instantly share code, notes, and snippets.

@denyskoch
Last active August 29, 2015 13:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save denyskoch/8859513 to your computer and use it in GitHub Desktop.
Save denyskoch/8859513 to your computer and use it in GitHub Desktop.
Clean way of FlexForm separation.
{namespace v=Tx_Vhs_ViewHelpers}
{namespace flux=Tx_Flux_ViewHelpers}
<f:section name="Logos">
<flux:flexform.sheet name="logos">
<flux:flexform.section name="logos">
<flux:flexform.object name="logo">
<flux:flexform.field.input name="alt" required="true" />
<flux:flexform.field.file name="src" allowed="png" required="true" />
</flux:flexform.object>
</flux:flexform.section>
</flux:flexform.sheet>
</f:section>
<f:section name="HeaderSlider">
<flux:flexform.sheet name="slider">
<flux:flexform.section name="slides">
<flux:flexform.object name="slide">
<flux:flexform.field.input name="headline" required="true" />
<flux:flexform.field.input name="text" required="true" />
<flux:flexform.field.file name="src" allowed="png,jpg" required="true" />
<flux:flexform.field.input name="linkText" required="true" />
<flux:flexform.field.input name="linkTarget" required="true">
<flux:flexform.field.wizard.link />
</flux:flexform.field.input>
<flux:flexform.field.checkbox name="button" />
<flux:flexform.field.input name="buttonText" />
<flux:flexform.field.file name="buttonBg" allowed="png" />
<flux:flexform.field.input name="buttonTarget">
<flux:flexform.field.wizard.link />
</flux:flexform.field.input>
</flux:flexform.object>
</flux:flexform.section>
</flux:flexform.sheet>
</f:section>
{namespace v=Tx_Vhs_ViewHelpers}
{namespace flux=Tx_Flux_ViewHelpers}
<f:layout name="Page" />
<f:section name="Configuration">
<flux:flexform id="startpage" icon="EXT:lia_relaunch_de/ext_icon.gif">
<f:render section="Logos" partial="FlexForms" arguments="{_all}" />
<f:render section="HeaderSlider" partial="FlexForms" arguments="{_all}" />
</flux:flexform>
</f:section>
<f:section name="Content">
Hello Startpage
</f:section>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment