[Typo3] TV bug or FCE mistake.

Kraft Bernhard kraftb at kraftb.at
Mon May 2 16:28:12 CEST 2005


Hallo list,

I'm currently doing some FCE's and encountered some inpossibility to map an FCE.

Here's how the FCE's HTML looks like:

---------------snip------------------------------------------
<div class="link-container">
	<h1>Title</h1>
	<span>
		Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Maecenas eu
		ante sed tellus luctus lacinia. Integer non pede. Donec mauris. Praesent
	</span>
	<div>
		<div class="link">
			<a href="#" target="_blank">
				<img src="img/link_icon.gif" alt="Link" />
				<span>Irgendwo</span>
			</a>
		</div>
		...
		<div class="link">
			<a href="#" target="_blank">
				<img src="img/link_icon.gif" alt="Link" />
				<span>Irgendwo</span>
			</a>
		</div>
	</div>
</div>
---------------snip------------------------------------------

Now I made the following TV Setup:
--------------snip------------------------
* (CO) Root - <div class="link-container"> - OUTTER
|- * (EL) Title - field_title - <h1>Title</h1> - INNER
|- * (EL) Text - field_text - <span>Lorem ipsum ...</span> - INNER
|- * (SC) Linklist Container - <div> - INNER
    |-* (CO) Link - field_link - <div class="link"> - OUTTER
      |-* (EL) Link Icon - field_link_icon - <img src="img/link_icon.gif" alt="Link" /> - OUTTER
      |-* (EL) Link Title - field_link_title - <span>Irgendwo</span> - INNER
      |-* (AT) Link URL - field_link_href - href="#"
      |-* (AT) Link Target - field_link_target - target="_blank"
--------------snip------------------------

The problem arises when I try to map (AT) Link URL or (AT) Link Target.
As soon as I map one of those to the attributes of the <a href> tag the
mapping of (EL) Link Icon and (EL) Link Title gets invalid. When I remove
the (AT) elements the two (EL) elements get valid again.

It seems as it doesn't allow me to map something which is inside of an <a href>
tag of which attributes have been mapped.

Is this a known bug ? And is there a patch available ?


greets,
Bernhard






More information about the TYPO3-english mailing list