[Typo3] lib.stdheader combined with text

Christopher tombedlam at yahoo.com
Mon Apr 11 02:36:37 CEST 2005


Hi,

--- Lars Houmark <lars at houmark.com> wrote:
> 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!
> 

What you probably want to do is re-write your cObjects so that they produce
the following html:

<h1><a href="http://www.example.com/example/"><em></em>Lorem Ipsum dolor
Sit Amet Consectetuer</a></h1> 

You can get more information about how the CSS associated with this method
works at the following urls:

[1] http://wellstyled.com/css-replace-text-by-image.html
[2] http://blog.tom.me.uk/2003/08/07/

...and this is a good, general starting point for finding out about 'FIR'
or using css to replace text with images - though be sure to scroll down to
the bottom!:

[3] http://www.stopdesign.com/articles/replace_text/



-Christopher


		
__________________________________ 
Do you Yahoo!? 
Yahoo! Small Business - Try our new resources site!
http://smallbusiness.yahoo.com/resources/



More information about the TYPO3-english mailing list