[TYPO3] GMENU and shortcuts

JoH asenau info at cybercraft.de
Wed May 16 15:31:46 CEST 2007


> Ok. So the html-output is following:
>
> noLink = 0 gives
>
> <div class="menuL1off">
> <a href="index.php?id=155" onfocus="blurLink(this);"
> onmouseover="over('img155_41ac_0');"
> onmouseout="out('img155_41ac_0');"> <img
> src="typo3temp/menu/4c931e18c4.png" width="145" height="20"  alt="The
> Page" id="img155_41ac_0" /> </a> </div>
>
>
> noLink = 1 gives
>
> <div class="menuL1off">
> <a href="index.php?id=155" >
> <img src="typo3temp/menu/4c931e18c4.png" width="145" height="20"
> alt="The Page" id="img155_41ac_0" /> </a>
> </div>

Well - this is a little bit surprising to me since on my server the images
haven't got any id="blah" if I set "noLink=1". At least with a 4.1.1 core
the behaviour seems to be:
"noLink = 1" disables any RO generation _and_ the id setting of the NO
image.

So I guess there is no solution to this problem as long as you are disabling
the links using noLink. But maybe this could be working:

leave the whole setup as is and use allStdWrap to replace the whole item:

allStdWrap.override.cObject = COA
allStdWrap.override.cObject {
    if {
        value = 4
        equals.field = doktype
    }
    10 = IMAGE
    10 {
        file = GIFBUILDER
        file {
            #same setup as for the NO elements
        }
    }
    stdWrap.wrap = blah|blah
    stdWrap.required = 1
}

Since there is no typolink in this cObject the links should be disabled for
all pages with doktype 4. Override makes sure that elements are only
replaced, if the cObject is not empty.

Joey

-- 
Wenn man keine Ahnung hat: Einfach mal Fresse halten!
(If you have no clues: simply shut your gob sometimes!)
Dieter Nuhr, German comedian
openBC/Xing: http://www.cybercraft.de
T3 cookbook: http://www.typo3experts.com




More information about the TYPO3-english mailing list