[TYPO3-templavoila] treatment of links and anchors in TV

Tomas Broeker broekth at web.de
Thu Feb 15 20:57:29 CET 2007


Felix Natter schrieb:
> On Wed, 2007-02-14 at 11:47 +0200, Dmitry Dulepov wrote:
>>> 2. A #top-anchor at the bottom of the page linking to the top.
>> I do not remember the exact solution for this but it means you used one 
>> directive in "config" improperly.
> 
> We discussed this in typo3.english. The relevant property is
> config.prefixLocalAnchors = 0

This doesn't seem to work for me either. Although the hint to use "\" 
instead of "http:\\...." works fine now.


> However, this didn't fix it for me. 
> Here is a workaround suggested by Christopher Torgalson"
> <bedlamhotel at gmail.com>:
> 
> Simple solution: use a typolink in your template:
> 
> lib.topLink = IMAGE
> lib.topLink {
>   file = foo/bar/top.gif
>   altText = Top link graphic
>   titleText = Top of page...
>   stdWrap.typolink {
>     parameter.data = page:uid
>     section = top
>   }
> }
> 
> For any given page, this should output something like this:
> 
> <a href="/link/to/current/page/#top"><img src="foo/bar/top.gif"
> alt="Top link graphic" title="Top of page..." width="100" height="50"
> />

Yes, this would habe been my idea for a work-around, too. But I had 
hoped to avoid this. Why make such an anchor variable if it is 
everywhere the same. ;)

Thanks a lot for your hints!

Regards
Thomas



More information about the TYPO3-project-templavoila mailing list