Skip to main content

Form values

Values of form fields in the content element's "Configuration" section can be accessed through normal fluid variables:

{settings.fieldname}

The same applies for page templates and page configuration settings.

Content element example

<?xml version="1.0" encoding="utf-8"?>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en"
     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="exampleelement">
      <flux:field.input name="settings.header" />
    </flux:form>
  </f:section>

  <f:section name="Main">
    <h1>{settings.header}</h1>
  </f:section>
</html>

Page configuration inside a content element

It is possible to access the fluidpages page configuration in a fluidcontent element by using the flux:form.data view helper:

<flux:form.data table="pages" field="tx_fed_page_flexform" record="{page}" />