[TYPO3] local anchors in TV templates
Florian Seirer
florian.seirer at tirol.gv.at
Tue Jan 8 14:38:02 CET 2008
Hi!
I had the same problem, but I managed to find a solution.
Simply create the whole skiplink navigation by typoscript like this:
lib.skip_navigation = COA
lib.skip_navigation {
10 = TEXT
10.value = Skip to content [Alt(+Shift)+1]
10.typolink.target =
10.typolink.parameter = #content
10.typolink.ATagParams = accesskey="1"
10.wrap = <li>|</li>
20 = TEXT
20.value = Skip to navigation [Alt(+Shift)+2]
20.typolink.target =
20.typolink.parameter = #navigation
20.typolink.ATagParams = accesskey="2"
20.wrap = <li>|</li>
}
I haven't tried this with RealURL, though...
Regards, Flo
Gebhardt Thomas schrieb:
> Hi,
>
> I ran into trouble when I tried to use local anchors in TemplaVoila templates,
> namely implementing a skiplink navigation.
>
> In the template I jump to a local anchor:
>
> +++++++++
> <a class="skip" href="#menu_main_entry" title="Jump to the
> Navigation">Navigation</a>
> ....
> <a id="menu_main_entry" name="menu_main_entry"></a>
> +++++++++
>
> But TV changes the local link to a relative link:
>
> +++++++++
> <a class="skip" href="fileadmin/templates/#menu_main_entry" title="Jump to the
> Navigation">Navigation</a>
> ....
> <a id="menu_main_entry" name="menu_main_entry"></a>
> +++++++++
>
> Is this a known problem? Or did I miss something?
>
> (I'm using TYPO3 3.8.1 and TV 0.40)
>
> Thank you for any hint! Cheers, Thomas
More information about the TYPO3-english
mailing list