Skip to content

Instantly share code, notes, and snippets.

@stafast
Created May 27, 2016 10:07
Show Gist options
  • Save stafast/e2be5b55756fe4c6954dfbe52a2c5316 to your computer and use it in GitHub Desktop.
Save stafast/e2be5b55756fe4c6954dfbe52a2c5316 to your computer and use it in GitHub Desktop.
TYPO3 Fluid Styled Content Text Media Gallery Bootstrap Grid
<div class="ce-column
{f:if(condition:'{gallery.count.columns}<{data.imagecols}',then:'
col-sm-{f:cObject(typoscriptObjectPath:\'lib.math\',data:\'12/{data.imagecols}\')}
',else:'
col-sm-{f:cObject(typoscriptObjectPath:\'lib.math\',data:\'12/{gallery.count.columns}\')}
')}
">
lib.math = TEXT
lib.math {
current = 1
prioriCalc = 1
}
// Number of columns
TCEFORM.tt_content.imagecols.removeItems = 5,7,8
// Default: Number of columns
TCAdefaults.tt_content.imagecols = 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment