[TYPO3-templavoila] WG: constace in fce?
Post von Seniorm
post at seniorm.de
Wed Jun 11 16:27:52 CEST 2008
Hi list,
i got an fce for a two-colum layout.
I've mapped the class attribut from the sourounding div container as
selectbox where you can choose the typo of layout. For example 70/30 or
60/40.
Now i whant to define the maxImageWidth for the contentelements but i
diddn't know how to define a kind of constance inside my selecbox.
Here is the XML of the fce element and my thoughts how to define the
maxImageWidth.
I have totaly no idea how to realize what im looking for an will be very
thankfull for any kind of tipp and sorry for my bad grammar. I hope it is
possible what i mean.
Greetings
Nat**
<?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_layout type="array">
<type>attr</type>
<tx_templavoila type="array">
<title>Layout</title>
<sample_data
type="array">
<numIndex index="0"></numIndex>
</sample_data>
<eType>select</eType>
</tx_templavoila>
<TCEforms type="array">
<config
type="array">
<type>select</type>
<items type="array">
<numIndex index="0" type="array">
<numIndex index="0">Layout 50%/50%</numIndex>
<numIndex index="1">fce-2-spalten layout1</numIndex>
#### Inside here i need a kind of conctance####
###<numIndex index="2">680</numIndex>###
</numIndex>
<numIndex index="1" type="array">
<numIndex index="0">Layout 30%/70%</numIndex>
<numIndex index="1">fce-2-spalten layout2</numIndex>
</numIndex>
<numIndex index="2" type="array">
<numIndex index="0">Layout 70%/30%</numIndex>
<numIndex index="1">fce-2-spalten layout3</numIndex>
</numIndex>
<numIndex index="3" type="array">
<numIndex index="0">Layout 60%/40%</numIndex>
<numIndex index="1">fce-2-spalten layout4</numIndex>
</numIndex>
<numIndex index="4" type="array">
<numIndex index="0">Layout 40%/60%</numIndex>
<numIndex index="1">fce-2-spalten layout5</numIndex>
</numIndex>
</items>
<default>fce-2-spalten layout1</default>
</config>
<label>Layout</label>
</TCEforms>
</field_layout>
<field_fce2links type="array">
<tx_templavoila type="array">
<title>Inhalt
Links</title>
<sample_data
type="array">
<numIndex index="0"></numIndex>
</sample_data>
<eType>ce</eType>
<TypoScript>
5. = LOAD_REGISTER
# here i what to override the value with the value from the selectbox
# or in need the value from the field layout.....
5.maxImageWidthInText = {$maxImageInText}
5.maxImageWidth = {$maxImage}
10= RECORDS
10.source.current=1
10.tables = tt_content
10.wrap = <!--TYPO3SEARCH_begin--> | <!--TYPO3SEARCH_end-->
#15 = RESTORE_REGISTER
</TypoScript>
<oldStyleColumnNumber type="integer">0</oldStyleColumnNumber>
</tx_templavoila>
<TCEforms type="array">
<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>
<label>Inhalt
Links</label>
</TCEforms>
</field_fce2links>
<field_fce2rechts type="array">
<tx_templavoila type="array">
<title>Inhalt
Rechts</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>
<oldStyleColumnNumber type="integer">1</oldStyleColumnNumber>
</tx_templavoila>
<TCEforms type="array">
<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>
<label>Inhalt
Rechts</label>
</TCEforms>
</field_fce2rechts>
</el>
</ROOT>
</T3DataStructure>
More information about the TYPO3-project-templavoila
mailing list