[TYPO3-templavoila] FCE - SC / CO issue

Jacob Rasmussen jr at concare.net
Fri Oct 13 08:50:29 CEST 2006


Hi,

> > I have tried it, but the DIV disappears from output either 
> way... :( 
> > Do you know if it possible to wrap the field_element by manually 
> > adding TS to the DS?
> 
> If I remember correctly wraps do not for for SC/CO. But I am 
> sure I was able to get such DIVs in output :(

If you are able to find an example it would be great ( I know you're a
busy man :) ) and btw I just noticed that my ROOT mapping doesn't output
a DIV either, although ROOT is mapped as a div INNER

<div id="sponsors">
	<div class="heading">bla bla</div>
	<div class="sponsor_container">
		<a href="#">
			<img src="" />
		</a>
	</div>
</div>

My mapping as it is now:

CO | ROOT | div#sponsors INNER
  EL | field_heading | div.heading INNER
  SC | field_container | div.sponsor_container
    CO | field_element | div.sponsor_container INNER
      EL | field_logo | img
      AT | field_link | a ATTR:href



So the output looks like this:

<!--  CONTENT ELEMENT, uid:271/templavoila_pi1 [begin] -->

<a id="c271"></a>
<div class="heading">Sponsors</div>
<a href="link">
	<a href="same link" target="_top">
		<img src="uploaded image" width="120" height="60"
border="0" alt="" title="" />
	</a>
</a>
	
<!--  CONTENT ELEMENT, uid:271/templavoila_pi1 [end] -->

Another quirk I noticed, is that field_link is outputted twice. In DS:

<field_logo type="array">
	<tx_templavoila type="array">
		<title>Sponsor logo</title>
		<sample_data type="array">
			<numIndex index="0">Logo</numIndex>
		</sample_data>
		<eType>image</eType>
		<TypoScript>
10 = IMAGE
10.file.import = uploads/tx_templavoila/
10.file.import.current = 1
10.file.import.listNum = 0
10.file.maxW = 200
							
10.stdWrap.typolink.parameter.field = field_link
		</TypoScript>
	</tx_templavoila>
...........................

<field_link type="array">
	<type>attr</type>
	<tx_templavoila type="array">
		<title>Sponsor link</title>
		<sample_data type="array">
			<numIndex index="0">blabla at load.dk</numIndex>
		</sample_data>
		<eType>link</eType>
		<TypoScript>
10 = TEXT
10.typolink.parameter.current = 1
10.typolink.returnLast = url
		</TypoScript>
	</tx_templavoila>
.............................

It is of course not a problem for me to remove the stdWrap from
field_logo TS, but this is something I have to do each time I modify the
templatemappings.
Do you know why the typolink is added to the image field as well as the
link field? - and should I add it to the bugtracker?

Rgds
Jacob



More information about the TYPO3-project-templavoila mailing list