Skip to content

Instantly share code, notes, and snippets.

@ogrosko
Created December 21, 2016 09:32
Show Gist options
  • Select an option

  • Save ogrosko/3e21069c6698ce46c2b437e2c16d8fcd to your computer and use it in GitHub Desktop.

Select an option

Save ogrosko/3e21069c6698ce46c2b437e2c16d8fcd to your computer and use it in GitHub Desktop.
Dce gridelement depend
<f:switch expression="gridelement{contentObject.parentgrid_tx_gridelements_backend_layout}_col{contentObject.tx_gridelements_columns}">
<f:case value="gridelement4_col1">
<v:variable.set name="imageWidth" value="524c" />
<v:variable.set name="imageHeight" value="524c" />
<v:variable.set name="imageCol" value="6" />
<v:variable.set name="textCol" value="6" />
</f:case>
<f:case value="gridelement4_col2">
<v:variable.set name="imageWidth" value="524c" />
<v:variable.set name="imageHeight" value="524c" />
<v:variable.set name="imageCol" value="6" />
<v:variable.set name="textCol" value="6" />
</f:case>
<f:case default="TRUE">
<v:variable.set name="imageWidth" value="715c" />
<v:variable.set name="imageHeight" value="540c" />
<v:variable.set name="imageCol" value="7" />
<v:variable.set name="textCol" value="5" />
</f:case>
</f:switch>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment