[TYPO3-templavoila] FCE - link inside of <h3>
Dennis Laudenbach
laudenbach at agentur-brandung.de
Tue Mar 24 12:07:31 CET 2009
No Problem!
You have to put your Typoscript in a cdata-wrap:
<TypoScript>
<![CDATA[
10 = TEXT
10.current = 1
10.typolink.parameter.field = field_link
]]>
</TypoScript>
Ciao,
Daniz
-----Ursprüngliche Nachricht-----
Von: typo3-project-templavoila-bounces at lists.netfielders.de [mailto:typo3-project-templavoila-bounces at lists.netfielders.de] Im Auftrag von Barbara Wijbenga
Gesendet: Dienstag, 24. März 2009 12:01
An: typo3-project-templavoila at lists.netfielders.de
Betreff: Re: [TYPO3-templavoila] FCE - link inside of <h3>
Thanks!
You've been a very big help!
The only thing now is that the link is made in normal text and not in HTML (I get "<h3><a href="downloads/" title="Downloads" target="_top" >Downloads</a></h3>")
10 = TEXT
10.current = 1
10.typolink.parameter.field = field_link
I don't have 10.htmlSpecialChars on. Why doesn't this work the way I want to?
Greetings,
Barbara
"Dennis Laudenbach" <laudenbach at agentur-brandung.de> schreef in bericht news:mailman.3167.1237887409.27889.typo3-project-templavoila at lists.netfielders.de...
Hi Barbara,
if you use:
<div class='container-itemright'>
<h3>title<h3>
<div class='text'>text</div>
</div>
You can wrap the <h3> as element,
create another element for the link (not mapped) and refer in the TypoScript of the <h3> to the link.
10 = TEXT
10.current = 1
10.typolink.parameter.field = ###linkfield###
Please replace ###linkfield### with the correct name.
Ciao,
Daniz
-----Ursprüngliche Nachricht-----
Von: typo3-project-templavoila-bounces at lists.netfielders.de
[mailto:typo3-project-templavoila-bounces at lists.netfielders.de] Im Auftrag von Barbara Wijbenga
Gesendet: Dienstag, 24. März 2009 10:31
An: typo3-project-templavoila at lists.netfielders.de
Betreff: [TYPO3-templavoila] FCE - link inside of <h3>
Hi all.
I just started using Flexible Content Elements, and I don't get all of it yet. I can make a layout of two columns, but this I can't:
This is the HTML template:
------------------------------
<div class='container-itemright'>
<a href=''>title</a>
<div class='text'>text</div>
</div>
------------------------------
The href is being filled with an Attr. field.
I want an <h3> around the <a>.
If I use "wrap=<h3>|</h3>" in the DS, the <h3> ends up inside the <a> tags.
This is obviously not what I want.
And when the href Attr. field isn't filled, the <a> tag shouldn't be made at all.
That's why I started with this:
------------------------------
<div class='container-itemright'>
<h3>title<h3>
<div class='text'>text</div>
</div>
------------------------------
But this way, I have no idea how to get the <a> inside of the <h3>.
What is the best solution for this?
Thanks,
Barbara
_______________________________________________
TYPO3-project-templavoila mailing list
TYPO3-project-templavoila at lists.netfielders.de
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-project-templavoila
_______________________________________________
TYPO3-project-templavoila mailing list
TYPO3-project-templavoila at lists.netfielders.de
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-project-templavoila
More information about the TYPO3-project-templavoila
mailing list