[TYPO3] print page and menu

JoH info at cybercraft.de
Thu Aug 3 12:19:37 CEST 2006


> thank you for your answer but I guess I was not clear enough: I would
> like to override the automatic href created by Typo3 on the Page
> title...
>
> Tyler, thank you again, here is my code:
>
> marks.MENU2=HMENU
> marks.MENU2.1=TMENU
> marks.MENU2.entryLevel = 3
> marks.MENU2.1 {
>                       noBlur=1
>                        expAll=0
>                        wrap = <div id="nav4_cont"><ul>|</ul></div>
>                        #CUR=1
>                        #ACT=1
>
> NO {
>        wrapItemAndSub=<li>|</li>
>        #No "border-top" at the first menu-entry, done with Option
>        Split allWrap=<div
> class="nav4_einzel_cont_first">|</div>|*|<div
> class="nav4_einzel_cont">|</div>
>
>
ATagParams=class="nav4"||class="nav4"||class="nav4"||class="nav4"||class="na
v4"|*|class="nav4_grau"
>                        }
> }
> }

No additional page, no appending in optionSplit, nothing complicated, just a
simple COA.
Here we go:

marks.MENU2 = COA
marks.MENU2 {
    wrap = <div id="nav4_cont"><ul>|</ul></div>
    10 = HMENU
    10 {
        entryLevel = 3
        1 = TMENU
        1 {
            noBlur = 1
            NO {
                wrapItemAndSub = <li>|</li>
                allWrap = <div class="nav4_einzel_cont_first">|</div> |*|
<div class="nav4_einzel_cont">|</div>
                ATagParams = class="nav4" || class="nav4" || class="nav4" ||
class="nav4" || class="nav4" |*| class="nav4_grau" |*|
            }
        }
    }
    20 = TEXT
    20 {
        value = Print this!
        wrap (
<li>
    <div class="nav4_einzel_cont">
    <a href="javascript:window.print();" class="nav4_grau">|</a>
    </div>
</li>
    }
}

HTH

Joey

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





More information about the TYPO3-english mailing list