content.get ViewHelper <flux:content.get>

Gets all child content of a record based on area.

The elements are already rendered, they just need to be output.

Example: Render all child elements with a border

fluidcontent element with one column of child elements. Each element gets a red border:

<f:section name="Configuration">
<flux:grid>
<flux:grid.row>
<flux:grid.column name="teaser" colPos="0"/>

</flux:grid.row>

</flux:grid>

</f:section>

<f:section name="Main">
<f:for each="{flux:content.get(area:'teaser')}" as="element">
<div style="border: 1px solid red">
<f:format.raw>{element}</f:format.raw>

</div>

</f:for>

</f:section>

Arguments

area

DataType
string
Required
true
Description
Name or "colPos" value of the content area to render

limit

DataType
integer
Required
false
Description
Optional limit to the number of content elements to render

offset

DataType
integer
Required
false
Description
Optional offset to the limit

order

DataType
string
Default
'sorting'
Required
false
Description
Optional sort order of content elements - RAND() supported

sortDirection

DataType
string
Default
'ASC'
Required
false
Description
Optional sort direction of content elements

as

DataType
string
Required
false
Description
Variable name to register, then render child content and insert all results as an array of records

loadRegister

DataType
mixed
Required
false
Description
List of LOAD_REGISTER variable

render

DataType
boolean
Default
true
Required
false
Description
Optional returning variable as original table rows

hideUntranslated

DataType
boolean
Required
false
Description
Exclude untranslated records