[Typo3] lib.stdheader combined with text

Torsten Schrade schradt at uni-mainz.de
Mon Apr 11 07:00:12 CEST 2005


Hi Lars,
> Hi again,
> 
> 
>>Thank you both for your solutions, my solution is perfect!!
> 
> 
> I just discovered that using the solution from Torsten has a problem with a 
> linked headline. When linking a headline the text version is the only part 
> enclosed in the A tag. This means the image is not linked. Atually it would 
> be fine if the text links is NOT linked but the image is, as the text 
> version is used only for the CSS print version. Now, is there any way that I 
> could make the image become linked as well in case the headline has a link?
> 
> Here's a snip of the HTML code to help you understand the issue:
> 
> <div class="csc-header csc-header-n1"><h1><div class="headline"><a 
> href="http://www.test.com" target="_top">test</a></div><img 
> src="typo3temp/GB/daa631bad9.png" width="32" height="30"  border="0" 
> alt="test" title="test" /></h1></div>
> 
> I tried switching the TEXT part of the customer lib.stdheader to be rendered 
> as no. 1 because I thought that it somehow only linked the last one or 
> something. This is why the text version is printed first. Anyways, either 
> way doesn't work!
> 
> Regards,
> 
> Lars Houmark 
> 
> 
hadn't thought of that ;) Just put

lib.stdheader.10.5.(number).stdWrap.typolink.parameter.field = header_link

to the appropriate number your IMAGE/GIFBUILDER object has in the COA. 
stdWrap is a cool function and most of the times gives you anything you 
need. Have a look about it in the TSREF ;)
Cheers,
Torsten



More information about the TYPO3-english mailing list