[Typo3] TemplaVoila GIFBUILDER fontcolor from selectorbox

Michael Johnston mjohnston at planetactive.com
Tue May 3 02:03:11 CEST 2005


Hallo Udo,

Here is an example of a repeating content element that is used to build
a graphical menu, with text colors chosen from a pulldown. There is
some repetition because each line can be either unlinked, linked to a
page, or linked to an order page for an entered pdf name. The attached
image shows an example of what it builds.(attachment removed for 
mailing list)

I'm also including an example of a content element where typoscript in
one field uses data from another field that is not on the same level of
hierarchy, as you will probably run into this problem as well.

Unfortunately they're not short :) I'm cc'ing this to the list as well,
in case the info might be useful to others.

Choosing Gifbuilder colors from a selectbox. This works only if the TV
select field is on the same level of hierarchy of the xml as the
gifbuilder object:

<T3DataStructure>
      <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_images type="array">
                  <type>array</type>
                  <section>1</section>
                  <tx_templavoila type="array">
                      <title></title>
                      <eType>input</eType>
                  </tx_templavoila>
                  <el type="array">
                      <field_linked_image type="array">
                          <type>array</type>
                          <tx_templavoila type="array">
                              <title>Linked Image</title>
                              <eType>input</eType>
                          </tx_templavoila>
                          <el type="array">
                              <field_link_url type="array">
                                  <type>attr</type>
                                  <tx_templavoila type="array">
                                      <title>Link URL</title>
                                      <sample_data type="array">
                                          <numIndex index="0"></numIndex>
                                      </sample_data>
                                      <eType>link</eType>
                                      <TypoScript>
	10 = TEXT
	10.typolink.parameter.current = 1
	10.typolink.returnLast = url
							</TypoScript>
                                      <proc type="array">
                                          <HSC type="integer">1</HSC>
                                      </proc>
                                  </tx_templavoila>
                                  <TCEforms type="array">
                                      <config type="array">
                                          <type>input</type>
                                          <size>15</size>
                                          <max>256</max>
                                          <checkbox></checkbox>
                                          <eval>trim</eval>
                                          <wizards type="array">
                                              <_PADDING
type="integer">2</_PADDING>
                                              <link type="array">
                                                  <type>popup</type>
                                                  <title>Link</title>

<icon>link_popup.gif</icon>

<script>browse_links.php?mode=wizard</script>

<JSopenParams>height=300,width=500,status=0,menubar=0,scrollbars=1</
JSopenParams>
                                              </link>
                                          </wizards>
                                      </config>
                                      <label>Link URL</label>
                                  </TCEforms>
                              </field_link_url>
                              <field_link_container type="array">
                                  <type>array</type>
                                  <tx_templavoila type="array">
                                      <title>Link Container</title>
                                      <eType>input</eType>
                                  </tx_templavoila>
                                  <el type="array">
                                      <field_label type="array">
                                          <tx_templavoila type="array">
                                              <title>Colored 
Label</title>
                                              <sample_data type="array">
                                                  <numIndex
index="0"></numIndex>
                                              </sample_data>
                                              <eType>input_g</eType>
                                              <TypoScript>
           <![CDATA[

	10 = IMAGE
	10.file = GIFBUILDER
	10.file {
		XY = 359,16
		backColor = #000000
		
		10 = TEXT
		10.if.value = corporate
		10.if.equals.field = field_labeltype
		10.text.current = 1
		10.text.case = upper
		10.niceText = 1
		10.niceText.scaleFactor = 4
		10.niceText.sharpen = 5
		10.fontColor = #0099FF
		10.fontFile =  t3lib/fonts/DINBk.ttf
		10.offset = 8,12
		10.fontSize = 14
		
		11 < 10.file.10
		11.if.value = leistungen
		11.fontColor = #FFD900
		
		12 < 10.file.10
		12.if.value = kunden
		12.fontColor = #FF3399
		
		13 < 10.file.10
		13.if.value = technologie
		13.fontColor = #C0F300
		
		20 = TEXT
		20.if.value = none
		20.if.equals.field = field_labeltype
		20.if.negate = 1
		20.text.field = field_info
		20.text.case = upper
		20.niceText = 1
		20.niceText.scaleFactor = 4
		20.niceText.sharpen = 5
		20.fontColor = #fffffe
		20.fontFile =  t3lib/fonts/DINBk.ttf
		20.offset = [10.w]+12,12
		20.fontSize = 14	
		
		21 < 10.file.20
		21.if.negate = 0
		21.offset = 8,12
		
		30 = BOX
		30.if.value = none
		30.if.equals.field = field_labeltype
		30.if.negate = 1
		30.color = white
		30.dimensions = [10.w]+12,14,[20.w],1

		31 < 10.file.30
		31.if.negate = 0
		31.dimensions = 8,14,[21.w],1
	}
]]>
								</TypoScript>
                                          </tx_templavoila>
                                          <TCEforms type="array">
                                              <config type="array">
                                                  <type>input</type>
                                                  <size>48</size>
                                                  <eval>trim</eval>
                                              </config>
                                              <label>Colored 
Label</label>
                                          </TCEforms>
                                      </field_label>
                                      <field_info type="array">
                                          <type>no_map</type>
                                          <tx_templavoila type="array">
                                              <title>Info (White
text)</title>
                                              <sample_data type="array">
                                                  <numIndex
index="0"></numIndex>
                                              </sample_data>
                                              <eType>input</eType>
                                              <proc type="array">
                                                  <HSC
type="integer">1</HSC>
                                              </proc>
                                          </tx_templavoila>
                                          <TCEforms type="array">
                                              <config type="array">
                                                  <type>input</type>
                                                  <size>48</size>
                                                  <eval>trim</eval>
                                              </config>
                                              <label>Info (White
text)</label>
                                          </TCEforms>
                                      </field_info>
                               <field_labeltype type="array">
                                  <type>no_map</type>
                                  <tx_templavoila type="array">
                                      <title>Label Color</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">Corporate (Blau)</numIndex>
												<numIndex index="1">corporate</numIndex>
											</numIndex>
											<numIndex index="1" type="array">
												<numIndex index="0">Leistungen (Gelb)</numIndex>
												<numIndex index="1">leistungen</numIndex>
											</numIndex>
											<numIndex index="2" type="array">
												<numIndex index="0">Kunden (Pink)</numIndex>
												<numIndex index="1">kunden</numIndex>
											</numIndex>
											<numIndex index="3" type="array">
												<numIndex index="0">Technologie (Gruen)</numIndex>
												<numIndex index="1">technologie</numIndex>
											</numIndex>
											<numIndex index="4" type="array">
												<numIndex index="0">None</numIndex>
												<numIndex index="1">none</numIndex>
											</numIndex>
										</items>
                                          <default>0</default>
                                      </config>
                                      <label>Label Color</label>
                                  </TCEforms>
                              </field_labeltype>
                                 </el>
                              </field_link_container>
                          </el>
                      </field_linked_image>
                      <field_unlinked_image type="array">
                          <type>array</type>
                          <tx_templavoila type="array">
                              <title>Unlinked Image</title>
                              <eType>input</eType>
                          </tx_templavoila>
                          <el type="array">
                              <field_label type="array">
                                  <tx_templavoila type="array">
                                      <title>Colored Label</title>
                                      <sample_data type="array">
                                          <numIndex
index="0">[Label]</numIndex>
                                      </sample_data>
                                      <eType>input_g</eType>
                                      <TypoScript>
           <![CDATA[

	10 = IMAGE
	10.file = GIFBUILDER
	10.file {
		XY = 359,16
		backColor = #000000
		
		10 = TEXT
		10.if.value = corporate
		10.if.equals.field = field_labeltype
		10.text.current = 1
		10.text.case = upper
		10.niceText = 1
		10.niceText.scaleFactor = 4
		10.niceText.sharpen = 5
		10.fontColor = #0099FF
		10.fontFile =  t3lib/fonts/DINBk.ttf
		10.offset = 8,12
		10.fontSize = 14
		
		11 < 10.file.10
		11.if.value = leistungen
		11.fontColor = #FFD900
		
		12 < 10.file.10
		12.if.value = kunden
		12.fontColor = #FF3399
		
		13 < 10.file.10
		13.if.value = technologie
		13.fontColor = #C0F300
		
		20 = TEXT
		20.if.value = none
		20.if.equals.field = field_labeltype
		20.if.negate = 1
		20.text.field = field_info
		20.text.case = upper
		20.niceText = 1
		20.niceText.scaleFactor = 4
		20.niceText.sharpen = 5
		20.fontColor = #fffffe
		20.fontFile =  t3lib/fonts/DINBk.ttf
		20.offset = [10.w]+12,12
		20.fontSize = 14	
		
		21 < 10.file.20
		21.if.negate = 0
		21.offset = 8,12
	}
]]>
								</TypoScript>
                                  </tx_templavoila>
                                  <TCEforms type="array">
                                      <config type="array">
                                          <type>input</type>
                                          <size>48</size>
                                          <eval>trim</eval>
                                      </config>
                                      <label>Colored Label</label>
                                  </TCEforms>
                              </field_label>
                              <field_info type="array">
                                  <type>no_map</type>
                                  <tx_templavoila type="array">
                                      <title>Info</title>
                                      <sample_data type="array">
                                          <numIndex
index="0">[info]</numIndex>
                                      </sample_data>
                                      <eType>input</eType>
                                      <proc type="array">
                                          <HSC type="integer">1</HSC>
                                      </proc>
                                  </tx_templavoila>
                                  <TCEforms type="array">
                                      <config type="array">
                                          <type>input</type>
                                          <size>48</size>
                                          <eval>trim</eval>
                                      </config>
                                      <label>Info</label>
                                  </TCEforms>
                              </field_info>
                              <field_labeltype type="array">
                                  <type>no_map</type>
                                  <tx_templavoila type="array">
                                      <title>Label Color</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">Corporate (Blau)</numIndex>
												<numIndex index="1">corporate</numIndex>
											</numIndex>
											<numIndex index="1" type="array">
												<numIndex index="0">Leistungen (Gelb)</numIndex>
												<numIndex index="1">leistungen</numIndex>
											</numIndex>
											<numIndex index="2" type="array">
												<numIndex index="0">Kunden (Pink)</numIndex>
												<numIndex index="1">kunden</numIndex>
											</numIndex>
											<numIndex index="3" type="array">
												<numIndex index="0">Technologie (Gruen)</numIndex>
												<numIndex index="1">technologie</numIndex>
											</numIndex>
											<numIndex index="4" type="array">
												<numIndex index="0">None</numIndex>
												<numIndex index="1">none</numIndex>
											</numIndex>
										</items>
                                          <default>0</default>
                                      </config>
                                      <label>Label Color</label>
                                  </TCEforms>
                              </field_labeltype>
                          </el>
                      </field_unlinked_image>
                      <field_orderlinked_image type="array">
                          <type>array</type>
                          <tx_templavoila type="array">
                              <title>Image Linked to Order Form</title>
                              <eType>input</eType>
                          </tx_templavoila>
                          <el type="array">
                              <field_label type="array">
                                  <tx_templavoila type="array">
                                      <title>Colored Label</title>
                                      <sample_data type="array">
                                          <numIndex
index="0">[Label]</numIndex>
                                      </sample_data>
                                      <eType>input_g</eType>
                                      <TypoScript>
           <![CDATA[

	10 = IMAGE
	10.stdWrap.insertData = 1
	10.stdWrap.wrap = <a href="javascript:orderPopup
('{field:field_pdfname}');"> | </a>
	10.file = GIFBUILDER
	10.file {
		XY = 359,16
		backColor = #000000
		
		10 = TEXT
		10.if.value = corporate
		10.if.equals.field = field_labeltype
		10.text.current = 1
		10.text.case = upper
		10.niceText = 1
		10.niceText.scaleFactor = 4
		10.niceText.sharpen = 5
		10.fontColor = #0099FF
		10.fontFile =  t3lib/fonts/DINBk.ttf
		10.offset = 8,12
		10.fontSize = 14
		10.border = 0
		
		11 < 10.file.10
		11.if.value = leistungen
		11.fontColor = #FFD900
		
		12 < 10.file.10
		12.if.value = kunden
		12.fontColor = #FF3399
		
		13 < 10.file.10
		13.if.value = technologie
		13.fontColor = #C0F300
		
		20 = TEXT
		20.if.value = none
		20.if.equals.field = field_labeltype
		20.if.negate = 1
		20.text.field = field_info
		20.text.case = upper
		20.niceText = 1
		20.niceText.scaleFactor = 4
		20.niceText.sharpen = 5
		20.fontColor = #fffffe
		20.fontFile =  t3lib/fonts/DINBk.ttf
		20.offset = [10.w]+12,12
		20.fontSize = 14	
		
		21 < 10.file.20
		21.if.negate = 0
		21.offset = 8,12
		
		30 = BOX
		30.if.value = none
		30.if.equals.field = field_labeltype
		30.if.negate = 1
		30.color = white
		30.dimensions = [10.w]+12,14,[20.w],1

		31 < 10.file.30
		31.if.negate = 0
		31.dimensions = 8,14,[21.w],1
	}
]]>
								</TypoScript>
                                  </tx_templavoila>
                                  <TCEforms type="array">
                                      <config type="array">
                                          <type>input</type>
                                          <size>48</size>
                                          <eval>trim</eval>
                                      </config>
                                      <label>Colored Label</label>
                                  </TCEforms>
                              </field_label>
                              <field_info type="array">
                                  <type>no_map</type>
                                  <tx_templavoila type="array">
                                      <title>Info</title>
                                      <sample_data type="array">
                                          <numIndex
index="0">[info]</numIndex>
                                      </sample_data>
                                      <eType>input</eType>
                                      <proc type="array">
                                          <HSC type="integer">1</HSC>
                                      </proc>
                                  </tx_templavoila>
                                  <TCEforms type="array">
                                      <config type="array">
                                          <type>input</type>
                                          <size>48</size>
                                          <eval>trim</eval>
                                      </config>
                                      <label>Info</label>
                                  </TCEforms>
                              </field_info>
                              <field_labeltype type="array">
                                  <type>no_map</type>
                                  <tx_templavoila type="array">
                                      <title>Label Color</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">Corporate (Blau)</numIndex>
												<numIndex index="1">corporate</numIndex>
											</numIndex>
											<numIndex index="1" type="array">
												<numIndex index="0">Leistungen (Gelb)</numIndex>
												<numIndex index="1">leistungen</numIndex>
											</numIndex>
											<numIndex index="2" type="array">
												<numIndex index="0">Kunden (Pink)</numIndex>
												<numIndex index="1">kunden</numIndex>
											</numIndex>
											<numIndex index="3" type="array">
												<numIndex index="0">Technologie (Gruen)</numIndex>
												<numIndex index="1">technologie</numIndex>
											</numIndex>
											<numIndex index="4" type="array">
												<numIndex index="0">None</numIndex>
												<numIndex index="1">none</numIndex>
											</numIndex>
										</items>
                                          <default>0</default>
                                      </config>
                                      <label>Label Color</label>
                                  </TCEforms>
                              </field_labeltype>
                               <field_pdfname type="array">
                                  <type>no_map</type>
                                  <tx_templavoila type="array">
                                      <title>PDF Name, with extension
(ex: BOB.pdf)</title>
                                      <sample_data type="array">
                                          <numIndex index="0"></numIndex>
                                      </sample_data>
                                      <eType>input</eType>
                                      <proc type="array">
                                          <HSC type="integer">1</HSC>
                                      </proc>
                                  </tx_templavoila>
                                  <TCEforms type="array">
                                      <config type="array">
                                          <type>input</type>
                                          <size>48</size>
                                          <eval>trim</eval>
                                      </config>
                                      <label></label>
                                  </TCEforms>
                              </field_pdfname>
                        </el>
                      </field_orderlinked_image>
                  </el>
              </field_images>
          </el>
      </ROOT>
</T3DataStructure>



Example of using TV field values when they are not on the same level of
hierarchy. This element links an image, and a descriptive text that is
another TD to the same page. To do so, it needs to have unmapped fields
for link & target, that two separate link elements use. Because these
elements are in different part of the hierarchy, they cannot access the
field values directly, so LOAD_REGISTER is used.

<T3DataStructure>
      <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_imagewidth type="array">
                  <type>no_map</type>
                  <tx_templavoila type="array">
                      <title>Maximum Image Width</title>
                      <sample_data type="array">
                          <numIndex index="0"></numIndex>
                      </sample_data>
                      <eType>select</eType>
                      <TypoScript>
	10=LOAD_REGISTER
	10.hpImageArticleMainLinkPid.field=field_imagewidth
                      </TypoScript>
                  </tx_templavoila>
                  <TCEforms type="array">
                      <config type="array">
                          <type>select</type>
                          <items type="array">
                              <numIndex index="2" type="array">
                                  <numIndex index="0">85 
pixels</numIndex>
                                  <numIndex index="1">85</numIndex>
                              </numIndex>
                              <numIndex index="0" type="array">
                                  <numIndex index="0">112
pixels</numIndex>
                                  <numIndex index="1">112</numIndex>
                              </numIndex>
                              <numIndex index="1" type="array">
                                  <numIndex index="0">140
pixels</numIndex>
                                  <numIndex index="1">140</numIndex>
                              </numIndex>
                          </items>
                          <default>0</default>
                      </config>
                      <label>Maximum Image Width</label>
                  </TCEforms>
              </field_imagewidth>
              <field_subhead type="array">
                  <tx_templavoila type="array">
                      <title>Subheadline Blue</title>
                      <sample_data type="array">
                          <numIndex index="0">[Subheadline]</numIndex>
                      </sample_data>
                      <eType>input_g</eType>
                      <TypoScript>
		<![CDATA[
		10 = IMAGE
		10.file = GIFBUILDER
		10.altText.current = 1
		10.file {
			XY = [10.w]+1, 15+[15.h]+[20.h]+[25.h]+[30.h]+[35.h]+[40.h]
		  backColor = #FFFFFF
		  reduceColors = 64
		  10 = TEXT
		  10.text.current = 1
		  10.text.case = upper
		  10.text.listNum = 0
		  10.text.listNum.splitChar = |
		  10.text.trim = 1
		  10.niceText = 1
		  10.niceText.scaleFactor = 4
		  10.niceText.sharpen = 5
		  10.fontColor = #0099FF
		  10.fontFile =  t3lib/fonts/DINBk.ttf
		  10.offset = 0,14
		  10.fontSize = 14
		  15 < 10.file.10
		  15.text.listNum = 1
		  15.text.required = 1
		  15.offset = 0,40
		  15.fontColor = #FFFFFF
		  15.fontSize = 6
		  20 < 10.file.10
		  20.text.listNum = 1
		  20.text.required = 1
		  20.offset = 0,30
		  25 < 10.file.15
		  25.text.listNum = 2
		  25.offset = 0,52
		  30 < 10.file.10
		  30.text.listNum = 2
		  30.text.required = 1
		  30.offset = 0,46
		  35 < 10.file.15
		  35.text.listNum = 3
		  35.offset = 0,80
		  40 < 10.file.10
		  40.text.listNum = 3
		  40.text.required = 1
		  40.offset = 0,62
		}
		]]>
								</TypoScript>
                  </tx_templavoila>
                  <TCEforms type="array">
                      <config type="array">
                          <type>input</type>
                          <size>48</size>
                          <eval>trim</eval>
                      </config>
                      <label>Subheadline Blue</label>
                  </TCEforms>
              </field_subhead>
              <field_copy type="array">
                  <tx_templavoila type="array">
                      <title>Body Text</title>
                      <sample_data type="array">
                          <numIndex index="0">[Body Text]</numIndex>
                      </sample_data>
                      <eType>text</eType>
                      <proc type="array">
                          <HSC type="integer">0</HSC>
                      </proc>
                  </tx_templavoila>
                  <TCEforms type="array">
                      <config type="array">
                          <type>text</type>
                          <cols>48</cols>
                          <rows>5</rows>
                      </config>
                      <label>Body Text</label>

<defaultExtras>richtext[*]:rte_transform[mode=css]</defaultExtras>
                  </TCEforms>
              </field_copy>
			<field_url type="array">
                  <type>no_map</type>
				<tx_templavoila type="array">
					<title>Link URL</title>
					<sample_data type="array">
						<numIndex index="0">[#]</numIndex>
					</sample_data>
					<eType>link</eType>
					<tags>a:attr:href</tags>
					<TypoScript>
	10=LOAD_REGISTER
	10.hpImageArticleMainLinkPid.field=field_url
					</TypoScript>
					<proc type="array">
						<HSC type="integer">1</HSC>
					</proc>
				</tx_templavoila>
				<TCEforms type="array">
					<config type="array">
						<type>input</type>
						<size>15</size>
						<max>256</max>
						<checkbox></checkbox>
						<eval>trim</eval>
						<wizards type="array">
							<_PADDING type="integer">2</_PADDING>
							<link type="array">
								<type>popup</type>
								<title>Link</title>
								<icon>link_popup.gif</icon>
								<script>browse_links.php?mode=wizard</script>
								
<JSopenParams>height=300,width=500,status=0,menubar=0,scrollbars=1</
JSopenParams>
							</link>
						</wizards>
					</config>
					<label>Link URL</label>
				</TCEforms>
			</field_url>
			<field_target type="array">
                  <type>no_map</type>
				<tx_templavoila type="array">
					<title>Link Target</title>
					<sample_data type="array">
						<numIndex index="0">[_self]</numIndex>
					</sample_data>
					<eType>select</eType>
					<TypoScript>
	10=LOAD_REGISTER
	10.hpImageArticleMainLinkTarget.field=field_target
					</TypoScript>
				</tx_templavoila>
				<TCEforms type="array">
					<config type="array">
						<type>select</type>
				<items type="array">
							<numIndex index="0" type="array">
								<numIndex index="0">_self</numIndex>
								<numIndex index="1">_self</numIndex>
							</numIndex>
							<numIndex index="1" type="array">
								<numIndex index="0">_blank</numIndex>
								<numIndex index="1">_blank</numIndex>
							</numIndex>
						</items>
						<default>0</default>
					</config>
					<label>Link Target</label>
				</TCEforms>
			</field_target>
             <field_linkcontainer type="array">
                  <type>array</type>
                  <tx_templavoila type="array">
                      <title>Link Container</title>
                      <eType>ce</eType>
                  </tx_templavoila>
                  <el type="array">
                      <field_titlecontainer type="array">
                          <type>array</type>
                          <tx_templavoila type="array">
                              <title>Title Container</title>
                              <eType>ce</eType>
                          </tx_templavoila>
                          <el type="array">
                              <field_title type="array">
                                  <tx_templavoila type="array">
                                      <title>Link Title</title>
                                      <sample_data type="array">
                                          <numIndex index="0">[Link
Title]</numIndex>
                                      </sample_data>
                                      <eType>input</eType>
                                      <proc type="array">
                                          <HSC type="integer">1</HSC>
                                      </proc>
                                  </tx_templavoila>
                                  <TCEforms type="array">
                                      <config type="array">
                                          <type>input</type>
                                          <size>48</size>
                                          <eval>trim</eval>
                                      </config>
                                      <label>Link Title</label>
                                  </TCEforms>
                              </field_title>
                          </el>
                      </field_titlecontainer>
                      <field_href type="array">
                          <type>attr</type>
                          <tx_templavoila type="array">
                              <title>Link URL</title>
                              <sample_data type="array">
                                  <numIndex index="0">[#]</numIndex>
                              </sample_data>
                              <eType>link</eType>
                              <tags>a:attr:href</tags>
                              <TypoScript>
	10 = TEXT
	10.typolink.parameter.data = register:hpImageArticleMainLinkPid
	10.typolink.returnLast = url
							</TypoScript>
                              <proc type="array">
                                  <HSC type="integer">1</HSC>
                              </proc>
                          </tx_templavoila>
                      </field_href>
                      <field_innertarget type="array">
                          <type>attr</type>
                          <tx_templavoila type="array">
                              <title>Link Target</title>
                              <sample_data type="array">
                                  <numIndex index="0">[_self]</numIndex>
                              </sample_data>
                              <eType>select</eType>
                              <tags>a:attr:target:</tags>
                              <TypoScript>
	10 = TEXT
	10.data = register:hpImageArticleMainLinkTarget
							</TypoScript>
                          </tx_templavoila>
                      </field_innertarget>
                  </el>
              </field_linkcontainer>
               <field_image type="array">
                  <tx_templavoila type="array">
                      <title>Image</title>
                      <sample_data type="array">
                          <numIndex index="0">[Image]</numIndex>
                      </sample_data>
                      <eType>image</eType>
                      <TypoScript>
		<![CDATA[
	10 = IMAGE
	10.file.import = uploads/tx_templavoila/
	10.file.import.current = 1
	10.file.import.listNum = 0
	10.file.maxW.field = field_imagewidth
	10.stdWrap.typolink.parameter.data = register:hpImageArticleMainLinkPid
	10.stdWrap.typolink.target.data = register:hpImageArticleMainLinkTarget
	10.stdWrap.typolink.extTarget.data =
register:hpImageArticleMainLinkTarget
]]>
				</TypoScript>
                  </tx_templavoila>
                  <TCEforms type="array">
                      <config type="array">
                          <type>group</type>
                          <internal_type>file</internal_type>
                          <allowed>gif,png,jpg,jpeg</allowed>
                          <max_size>1000</max_size>

<uploadfolder>uploads/tx_templavoila</uploadfolder>
                          <show_thumbs>1</show_thumbs>
                          <size>1</size>
                          <maxitems>1</maxitems>
                          <minitems>0</minitems>
                      </config>
                      <label>Image</label>
                  </TCEforms>
              </field_image>
			<field_marginclass type="array">
				<type>attr</type>
				<tx_templavoila type="array">
					<title>Block Class</title>
					<sample_data type="array">
						<numIndex index="0">[Block Class]</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">No space after</numIndex>
								<numIndex index="1">marginbot0</numIndex>
							</numIndex>
							<numIndex index="1" type="array">
								<numIndex index="0">With space after</numIndex>
								<numIndex index="1">marginbot16</numIndex>
							</numIndex>
						</items>
						<default>0</default>
					</config>
					<label>Block Class (set space below)</label>
				</TCEforms>
			</field_marginclass>
          </el>
      </ROOT>
</T3DataStructure>


Hope this is useful!


Michael Johnston
Planetactive


On 1-May-05, at 12:02 AM, Udo Gerhards wrote:

> Dear Mr. Johnston,
>
> i found your article in the TemplaVoila-Wikki about your problems to
> get the selected fontcolor work with GIFBUILDER in a
> templavoila-structure. At this moment i got the same problem and some
> further more like getting the selected font to work, set the selected
> offset and so on for GIBUILDER-generated text in images. It is all
> about the datatypes cause the do not have a stdWrap-attribute which
> makes me able to access the user inputs directly through the
> "field"-attribute.
>
> Now it seems that it's my only chance to ask you directly through mail
> if you solved the problems and if so, how do you do that. Cause in the
> whole typo3-community there is no similar thread which gives me the
> answer. I've tried everything which was given as an answer to your
> question but nothing seems to work.
>
> So please can you give me a short answer if you get the code to work
> and how do you do that? A short tscode-script would also help me to
> work this problem out.
>
> Greetings from germany and thanks in advance
>
> Udo Gerhards
>




More information about the TYPO3-english mailing list