[TYPO3-english] tmenu with anchors
Philipp Holdener
philipp.holdener at me.com
Fri Apr 27 08:57:59 CEST 2012
> Hello to all!
>
> I'm searching for a way to add the anchor "#menu_2" to all the page links in my TMenu... but for now with no progress!
>
> For now:
> <ul>
> <li>
> <a href="test.html">Title 1</a>
> </li>
> <li>
> <a href="test2.html">Title 2</a>
> </li>
> </ul>
>
> What I want:
> <ul>
> <li>
> <a href="test.html#menu_2">Title 1</a>
> </li>
> <li>
> <a href="test2.html#menu_2">Title 2</a>
> </li>
> </ul>
>
> P.S. I need that menu to by rendered automatically because it will be used on many different pages. Pages will be added/removed from it regularly and I want it to reflect current page status... without editors interventions.
>
> Thanks!
>
Hi
I guess I used something like this for this problem a long time ago
NO {
wrapItemAndSub = <li>|</li>
doNotLinkIt = 1
ATagTitle.field = subtitle
ATagTitle.ifEmpty.field = title
stdWrap.htmlSpecialChars = 1
stdWrap.typolink {
parameter.dataWrap = {field:uid}#menu_2
}
Greetings
philipp
More information about the TYPO3-english
mailing list