[TYPO3-templavoila] Problem TS in TV CASE

Joachim Streit jstreit at ditnetwork.de
Thu Jul 19 10:59:17 CEST 2007


Hello List,
I have a problem with HTML Tags in Typoscript wich is included in DS:
-----
  <TypoScript>

10 = CASE
  10 {
   key.field =  field_rb_wb_auswahl
   default = TEXT   # it does not work with HTML eather
   default.value = <img src="fileadmin/test1.gif" width="120" 
height="98" alt="Studiocam" title="Studiocam" />
   1 = TEXT
   1.value = <img src="fileadmin/test2.jpg" width="120" height="98" 
alt="Eventcam" title="Eventcam" />
  }

   </TypoScript>		

-----

The value is not given in FE,
when I write this value it works fine:

value = Hello World

but I need this hardcoded IMG Tag.

where is my mistake? Or is'nt it possible with this script to output HTML?

Thanks for Hints

Joachim.



---
the hole xml:
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<T3DataStructure>
	<meta type="array">
		<langDisable>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_rb_wb_header type="array">
				<tx_templavoila type="array">
					<title>Header</title>
					<description>Header Text</description>
					<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>Header</label>
				</TCEforms>
			</field_rb_wb_header>
			<field_rb_wb_auswahl type="array">
				<tx_templavoila type="array">
					<title>Bild auswählen: </title>
					<sample_data type="array">
						<numIndex index="0"></numIndex>
					</sample_data>
					<eType>select</eType>

  <TypoScript>

   10 = CASE
   10 {
     key.field =  field_rb_wb_auswahl
     default = IMAGE
     default {
       file = fileadmin/mls/verruecktekatze.jpg
       titleText.field = field_imgtitle
       altText.field = field_imgalt
       params >
       params = width="120" height="98"
     }
     1 = TEXT
     1 {
       value = Hallo Arnd
     }
     stdWrap.typolink.parameter.field = field_rb_wb_link
     stdWrap.wrap = |
   }		
   </TypoScript>		
				</tx_templavoila>
				<TCEforms type="array">
					<config type="array">
						<type>select</type>
						<items type="array">
							<numIndex index="0" type="array">
								<numIndex index="0">Studiocam</numIndex>
								<numIndex index="1"></numIndex>
							</numIndex>
							<numIndex index="1" type="array">
								<numIndex index="0">Eventcam</numIndex>
								<numIndex index="1">1</numIndex>
							</numIndex>

						</items>
						<default>0</default>
					</config>
					<label>Webcam auswählen: </label>
				</TCEforms>
			</field_rb_wb_auswahl>
		
			
			<field_rb_wb_link type="array">
				<tx_templavoila type="array">
					<title>Link</title>
					<sample_data type="array">
						<numIndex index="0">uid 28</numIndex>
					</sample_data>
					<eType>link</eType>
					<TypoScript>
	10 = TEXT
	10.typolink.parameter.current = 1
					</TypoScript>
				</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</label>
				</TCEforms>
			</field_rb_wb_link>
			
			

			<field_imgalt type="array">
				<tx_templavoila type="array">
					<title>Alttext</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>Alttext</label>
				</TCEforms>
			</field_imgalt>
			<field_imgtitle type="array">
				<tx_templavoila type="array">
					<title>Titletext</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>Titletext</label>
				</TCEforms>
			</field_imgtitle>


		</el>
	</ROOT>
</T3DataStructure>


More information about the TYPO3-project-templavoila mailing list