[TYPO3] external link in menu, typoscript and typolink.
Andrew Plank
plankmeister_NO at SPAM_hotmail.com
Thu Jun 26 11:52:59 CEST 2008
Hi Typolink/TS experts!
On my site, I have a list of pages, one of which is of type "Link to an
external URL", which points to a subdomain of my site.
The typoscript that creates the menu looks like this:
lib.menu_main = COA
lib.menu_main = HMENU
lib.menu_main.entryLevel = 0
lib.menu_main.1 = TMENU
lib.menu_main.1 {
noBlur=1
wrap = <ul>|</ul>
NO = 1
NO {
allWrap = <li>|</li>
stdWrap.case = lower
stdWrap.cObject = CASE
stdWrap.cObject {
key.field = doktype
default = TEXT
default.field = title
default.typolink.ATagBeforeWrap=1
default.typolink.wrap=|
3 < .default
3.typolink.ATagBeforeWrap=1
3.stdWrap.htmlSpecialChars = 1
3.typolink.parameter.dataWrap = http://{field:url}
}
ACT = 1
ACT.allWrap = <li class="main_selected">|</li>
ACT.stdWrap.case = lower
ACT.doNotLinkIt = 1
}
Which almost works... In the output, the link that points to the
subdomain is correct, however, this link is wrapped in another link, so
I end up with this:
<a href="subdomain/"><a href="http://subdomain.example.com"
target="_top">subdomain</a></a>
Which is obviously not valid HTML. How can I modify the above TS so that
the correct link isn't wrapped like that? Also, is it possible to
configure it so that target="_top" is removed?
Here's hoping!
//Plankmeister
More information about the TYPO3-english
mailing list