[Typo3] Showing a menu even if the page is restricted

Charles Ayache charles at smartagence.com
Thu Sep 15 09:47:49 CEST 2005


Hi,
The solution to show the pages wiches are restricted is to make a user
fonction for build the menu.
After, You call the function in your typoscript like that :

subtpl_navigation1 = HMENU
subtpl_navigation1.special = userfunction
subtpl_navigation1.special.userFunc = user_Menu->ShowMenu
subtpl_navigation1.1 = TMENU
subtpl_navigation1.1 {
    wrap = <ul> | </ul>
    NO.linkWrap = <li>|</li>
    ACT = 1
   ACT.linkWrap = <li class="on">|</li>
}

for your PHP script use the fonction array_push() for build the menu !!!
see this page :
http://typo3.org/documentation/document-library/doc_core_tsref/HMENU/  and
the exemple is this function :  makeMenuArray($content,$conf)
Hope it will be usefull for you.


Charles
PS : sorry for my poor english !!




You've got a great
----- Original Message -----
From: "Courcy Michael" <courcy.michael at wanadoo.fr>
To: "TYPO3 English" <typo3-english at lists.netfielders.de>
Sent: Thursday, September 15, 2005 8:38 AM
Subject: Re: [Typo3] Showing a menu even if the page is restricted


> Hi Bernhard
>
> Well, I can understand it looks strange to display a menu of a page wich
> is  restricted.
> The reason is actually a commercial one.
> We want to show to the new user (visitor)  that some informations could
> be reach only if they suscribe.
> But to achieve this goal we need to **show** the page exists...
>
> Michael.
>
>
> Bernhard Kraft wrote:
>
> >Courcy Michael wrote:
> >
> >
> >>Hi list,
> >>
> >>I'd like to show a menu of restricted page even if the user is not
> >>identified.
> >>
> >>I don't know how to achieve that with regular typoscript ?
> >>
> >>
> >
> >May you explain what you want to achieve ?
> >
> >Why do you give the pages access restrictions if they should be also
> >visible when not logged in ?
> >
> >greets,
> >Bernhard
> >_______________________________________________
> >Typo3-english mailing list
> >Typo3-english at lists.netfielders.de
> >http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
> >
> >
> >
> >
>
> _______________________________________________
> Typo3-english mailing list
> Typo3-english at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
>
>
>
> --
> No virus found in this incoming message.
> Checked by AVG Anti-Virus.
> Version: 7.0.344 / Virus Database: 267.10.24/101 - Release Date:
13/09/2005
>
>




More information about the TYPO3-english mailing list