Skip to content

Instantly share code, notes, and snippets.

@michaelorionmcmanus
Created November 1, 2011 21:09
Show Gist options
  • Save michaelorionmcmanus/1331917 to your computer and use it in GitHub Desktop.
Save michaelorionmcmanus/1331917 to your computer and use it in GitHub Desktop.
<T3DataStructure>
<meta>
<langDisable>1</langDisable>
</meta>
<sheets>
<sDEF>
<ROOT>
<TCEforms>
<sheetTitle>General</sheetTitle>
</TCEforms>
<type>array</type>
<el>
<allowedActions>
<TCEforms>
<label>Allowed Actions</label>
<!--
Step 1:
Be sure to add the onChange element to the field that you want to use as a trigger to change.
You reference fields in displayCond, so it\'s possible to have multiple triggers
in a form.
-->
<onChange>reload</onChange>
<config>
<type>select</type>
<items type="array">
<numIndex index="1" type="array">
<numIndex index="0">Default</numIndex>
<numIndex index="1">index</numIndex>
</numIndex>
<numIndex index="2" type="array">
<numIndex index="0">Series-List</numIndex>
<numIndex index="1">series</numIndex>
</numIndex>
</items>
<minitems>0</minitems>
<maxitems>2</maxitems>
<size>5</size>
</config>
</TCEforms>
</allowedActions>
<series>
<TCEforms>
<label>Select a Series</label>
<!--
Step 2:
Set displayCond. See the TCA reference for more info on how you can use this element.
-->
<displayCond>FIELD:allowedActions:=:series</displayCond>
<config>
<type>select</type>
<foreign_table>tx_mtsproddb_series</foreign_table>
<foreign_table_where>ORDER BY tx_mtsproddb_series.title DESC</foreign_table_where>
<size>6</size>
<autoSizeMax>6</autoSizeMax>
<minitems>1</minitems>
<maxitems>9999</maxitems>
</config>
</TCEforms>
</series>
</el>
</ROOT>
</sDEF>
</sheets>
</T3DataStructure>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment