Skip to content

Instantly share code, notes, and snippets.

@derhansen
Last active August 29, 2015 14:01
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 derhansen/0ba6442dde45e741d15c to your computer and use it in GitHub Desktop.
Save derhansen/0ba6442dde45e741d15c to your computer and use it in GitHub Desktop.
TYPO3 - Flexible Content Element to Grid Element example
<div class="fce-2col">
<div class="fce-2col-col1">
Column 1
</div>
<div class="fce-2col-col2">
Column 2
</div>
</div>
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<T3DataStructure>
<meta type="array">
<langChildren type="integer">1</langChildren>
<langDisable type="integer">1</langDisable>
</meta>
<ROOT type="array">
<tx_templavoila type="array">
<title>ROOT</title>
<description>Select the HTML element on the page which you want to be the overall container element for the template.</description>
</tx_templavoila>
<type>array</type>
<el type="array">
<field_col1 type="array">
<tx_templavoila type="array">
<title>Column1</title>
<sample_data type="array">
<numIndex index="0"></numIndex>
</sample_data>
<eType>ce</eType>
<TypoScript>
10= RECORDS
10.source.current=1
10.tables = tt_content</TypoScript>
<preview></preview>
<enableDragDrop type="integer">1</enableDragDrop>
</tx_templavoila>
<TCEforms type="array">
<label>Column1</label>
<config type="array">
<type>group</type>
<internal_type>db</internal_type>
<allowed>tt_content</allowed>
<size>5</size>
<maxitems>200</maxitems>
<minitems>0</minitems>
<multiple>1</multiple>
<show_thumbs>1</show_thumbs>
</config>
</TCEforms>
</field_col1>
<field_col2 type="array">
<tx_templavoila type="array">
<title>Column2</title>
<sample_data type="array">
<numIndex index="0"></numIndex>
</sample_data>
<eType>ce</eType>
<TypoScript>
10= RECORDS
10.source.current=1
10.tables = tt_content</TypoScript>
<preview></preview>
<enableDragDrop type="integer">1</enableDragDrop>
</tx_templavoila>
<TCEforms type="array">
<label>Column2</label>
<config type="array">
<type>group</type>
<internal_type>db</internal_type>
<allowed>tt_content</allowed>
<size>5</size>
<maxitems>200</maxitems>
<minitems>0</minitems>
<multiple>1</multiple>
<show_thumbs>1</show_thumbs>
</config>
</TCEforms>
</field_col2>
</el>
</ROOT>
</T3DataStructure>
tt_content.gridelements_pi1.20.10.setup {
1 < lib.gridelements.defaultGridSetup
1 {
columns {
default < .default
default.wrap = <div class="fce-2col-col1">|</div>
1 < .default
1.wrap = <div class="fce-2col-col2">|</div>
}
wrap = <div class="fce-2col">|<div class="clear"></div></div>
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment