Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save b0r1sp/11353367 to your computer and use it in GitHub Desktop.
Save b0r1sp/11353367 to your computer and use it in GitHub Desktop.
TYPO3 Gridelements setup for Foundation
# FLEXFORM / Snippet with ❤ by Typoheads
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<T3DataStructure>
<meta>
<langDisable>1</langDisable>
</meta>
<ROOT type="array">
<type>array</type>
<el type="array">
<columnType type="array">
<TCEforms type="array">
<label>Column Type</label>
<config type="array">
<type>select</type>
<items type="array">
<numIndex index="0" type="array">
<numIndex index="0">1:1</numIndex>
<numIndex index="1">cols-1-1</numIndex>
</numIndex>
<numIndex index="1" type="array">
<numIndex index="0">1:2</numIndex>
<numIndex index="1">cols-1-2</numIndex>
</numIndex>
<numIndex index="2" type="array">
<numIndex index="0">2:1</numIndex>
<numIndex index="1">cols-2-1</numIndex>
</numIndex>
<numIndex index="3" type="array">
<numIndex index="0">1:3</numIndex>
<numIndex index="1">cols-1-3</numIndex>
</numIndex>
<numIndex index="4" type="array">
<numIndex index="0">3:1</numIndex>
<numIndex index="1">cols-3-1</numIndex>
</numIndex>
</items>
</config>
</TCEforms>
</columnType>
</el>
</ROOT>
</T3DataStructure>
# TYPOSCRIPT / Snippet with ❤ by Typoheads
temp.gridelements.defaultGridSetup {
columns {
default {
renderObj = COA
renderObj {
10 = LOAD_REGISTER
20 =< tt_content
30 = RESTORE_REGISTER
}
}
}
}
tt_content.gridelements_pi1.20.10.setup {
0 < temp.gridelements.defaultGridSetup
0 {
dataWrap = <div class="row">|</div>
columns {
0 < .default
0.wrap {
cObject = CASE
cObject {
key.field = flexform_columnType
default = TEXT
default {
dataWrap = <div class="large-6 columns">|</div>
value = |
}
cols-1-2 < .default
cols-1-2.dataWrap = <div class="large-4 columns">|</div>
cols-2-1 < .default
cols-2-1.dataWrap = <div class="large-8 columns">|</div>
cols-1-3 < .default
cols-1-3.dataWrap = <div class="large-3 columns">|</div>
cols-3-1 < .default
cols-3-1.dataWrap = <div class="large-9 columns">|</div>
}
}
1 < .0
1.wrap.cObject {
default.dataWrap = <div class="large-6 columns">|</div>
cols-1-2.dataWrap = <div class="large-8 columns">|</div>
cols-2-1.dataWrap = <div class="large-4 columns">|</div>
cols-1-3.dataWrap = <div class="large-9 columns">|</div>
cols-3-1.dataWrap = <div class="large-3 columns">|</div>
}
}
}
}
@hocomadvies
Copy link

No one reading this? Would be pleased with some input to get this working. The question is, how to use this grid elements set up without creating the be-columns for every grid-element. Or is that not possible? So do I need to create BE-layout for every grid anyway?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment