[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[TYPO3] [TV][FCE] get current value ???
- From: michael at cannonbose.com (Michael Cannon)
- Date: Thu, 9 Feb 2006 13:56:28 -0500
Andreas,
The following demonstrates breaking the current element into two
parts because each needs it's own template wrapping. Please note that
this is for text type content versus plugin.
-----
<field_bottomright type="array">
<tx_templavoila type="array">
<title>Bottom Right</title>
<sample_data type="array">
<numIndex index="0">Bottom Right</numIndex>
</sample_data>
<eType>ce</eType>
<TypoScript><![CDATA[
# wrapped title content
10 = RECORDS
10 {
source.current = 1
tables = tt_content
conf.tt_content = TEXT
conf.tt_content {
field = header
wrap (
<table width="225" height="100" border="1" align="center"
cellpadding="0" cellspacing="0" bordercolor="E6E6E6">
<tr bgcolor="E6E6E6">
<td colspan="2" bgcolor="E6E6E6" class="SpurDigitalName"><img
src="/images/spacer.gif" width="5" height="1">
|
</td>
</tr>
)
}
}
# wrapped bodytext content
20 = RECORDS
20 {
source.current = 1
tables = tt_content
conf.tt_content = TEXT
conf.tt_content {
field = bodytext
wrap (
<tr>
<td colspan="2"><table width="225" border="0" align="center"
cellpadding="5" cellspacing="0">
<tr valign="top" bgcolor="#FFFFFF">
<td width="225" align="center">
|
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="7" colspan="2" bgcolor="737373"><img src="/images/
spacer.gif" width="7" height="4" hspace="2"></td>
</tr>
</table>
)
}
}
]]></TypoScript>
<tags>table</tags>
</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>Bottom Right</label>
</TCEforms>
</field_bottomright>
-----
Michael
-----
Michael Cannon
President of Cannonbose, LLC
Tel : +1 (206) 351-0159 Fax : +1 (802) 609-2776
|