Last active
August 29, 2015 14:01
-
-
Save derhansen/0ba6442dde45e741d15c to your computer and use it in GitHub Desktop.
TYPO3 - Flexible Content Element to Grid Element example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="fce-2col"> | |
<div class="fce-2col-col1"> | |
Column 1 | |
</div> | |
<div class="fce-2col-col2"> | |
Column 2 | |
</div> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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