[TYPO3] TS: condition for dataWrap in headers

Bert Hiddink hiddink at bendoo.com
Sat Oct 7 19:47:34 CEST 2006


Hello!

I have the following TS:

tt_content.stdWrap.innerWrap.cObject.123.dataWrap = <div 
class="tx-contentwrapper_style123"><a 
href="index.php?id={field:header_link}" class="bannerlinks"> | </a></div>

Here, {field:header_link} gives me the id of the page where the header 
is linked to. However, the wrap '<a 
href="index.php?id={field:header_link}" class="bannerlinks">' is not 
correct in case the header is linked to an external page 
("www.something.com"). In the latter case, this should be '<a 
href="http://{field:header_link}" target="_new" class="bannerlinks">'

How could I set a condition in TS which checks the type of link 
(internal or external) and then change the wrap accordingly?

Many thanks in advance as usual!!!

grt,
-brt

-- 
Bert Hiddink
hiddink at bendoo.nl
BENDOO e-work solutions
http://www.bendoo.nl
Harterinkdijk 8, 7065 AR SINDEREN
The Netherlands
Tel. 0315 244525




More information about the TYPO3-english mailing list