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

Felix Natter felix.natter at smail.inf.fh-bonn-rhein-sieg.de
Wed Feb 14 11:05:38 CET 2007


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

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"
/>

...which should work.

-- 
Felix Natter <felix.natter at smail.inf.fh-brs.de>



More information about the TYPO3-project-templavoila mailing list