[TYPO3-templavoila] FCE - link inside of <h3>
Dennis Laudenbach
laudenbach at agentur-brandung.de
Tue Mar 24 10:36:42 CET 2009
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
More information about the TYPO3-project-templavoila
mailing list