typoscript - TYPO3 Menu creates two anchor per link -


the following typoscript creates 2 anchor tags per li tag.

5 = hmenu 5 {    wrap = <ul class="menu clearfix">|</ul>    special = directory    special.value = {$supportfolder}    1 = tmenu    1 {      noblur=1      no.atagparams = title="{field:title}"      no.atagparams.insertdata = 1      no.allwrap = <li>|</li>      no.stdwrap.cobject = case      no.stdwrap.cobject {        key.field = doktype        1 = text        1 {          typolink.parameter.field = uid          field = title          stdwrap.htmlspecialchars = 1        }        # pagetype shortcut        4 = text        4 {          field = title          typolink.parameter.field = shortcut        }        # page typo3 external url        3=coa        3 {          # textblock für http-links (wert 1)          10 = text          10 {            field = title            typolink.parameter.data >            typolink.parameter.datawrap = http://{field:url}            stdwrap.htmlspecialchars = 1            if {              value=1              equals.field=urltype            }          }          # textblock für https-links (wert 4)          20 < .10          20 {            typolink.parameter.datawrap = https://{field:url}            if.value = 4          }        }      }      act < .no      act = 1    }  } 

the html result is:

<li>    <a href="/kontakt.htm" title="kontakt"></a>    <a href="https://www.google.de" target="_top">kontakt</a> </li> 

the reason building menu cobject wrap is, typo3 doesn't output external links when page type external link. instead shows internal link page, redirects external link.

and simple typolink doesn't add url scheme link. thats why came solution.

the question is: how rid of first tag, senseless , wrong. :-)

try use donotlinkit = 1 in no


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -