


TYPO3 creates for pages of the type shortcut and for pages of the type external link by default no direct link to the external page / to the shortcut target.
This snippet also enables the CUR and ACT state for pages of the type shortcut.
This can be changed with a CASE object on the stdWrap of a menuitem:
lib.menu=HMENU lib.menu{ 1=TMENU 1.wrap=<ul>|</ul> 1.NO { # do not create a link here else there are double <a> tags doNotLinkIt = 1 wrapItemAndSub=<li>|</li> stdWrap.cObject = CASE stdWrap.cObject { key.field = doktype default = TEXT default { field = title typolink.parameter.field = uid stdWrap.htmlSpecialChars = 1 } # 4 = shortcut 4 = TEXT 4 { field = title typolink.parameter.field = shortcut } # 3 = external url 3 = TEXT 3 { field = title typolink.parameter.field = url typolink.extTarget.field = target } } } }


Comments (3)