[Typo3-dev] Follow-Up: Re: Display page in menu, regardless of login status.

Keith Morrison keith_morrison at dfci.harvard.edu
Wed Oct 26 20:07:29 CEST 2005


Hi Onno,

You've GOT to use the line--
showAccessRestrictedPages.addParams = 
&return_url=###RETURN_URL###&pageId=###PAGE_ID### to get this feature to 
work.

I made an XCLASS extension so that this works properly with realurl if 
you need it.

Let me know if it still isn't working after adding this code as I've 
done quite a bit of digging on this subject.

Keith


Onno Schuit wrote:
> Hi All,
> 
> 
> I cannot seem to get the "showAccessRestrictedPages"-feature to work *AT 
> ALL*.
> 
> Please find my TS code included below.
> 
> 
> Cheers,
> 
> Onno
> 
> 
> 
> temp.mainmenu = HMENU
> temp.mainmenu {
>     entryLevel = {$temp.entryLevel.Main}
>     #1st Menu level
>     1 = TMENU
>     1 {
>         wrap = <ul class="menu">|</ul>
>         expAll = 1
>         IFSUB = 1
>         IFSUB.linkWrap = <li class="menuitem_NO"><div class="hasSub"><a 
> href="#" onclick="swapitem(this);" class="arrow_right"><img border="0" 
> height="11" width="13" src="images/empty.gif"/></a>|</div><ul>
>         ACTIFSUB = 1
>         ACTIFSUB.linkWrap = <li class="menuitem_ACT"><div 
> class="hasSub"><a href="#" onclick="swapitem(this);" 
> class="arrow_down"><img border="0" height="11" width="13" 
> src="images/empty.gif"/></a>|</div><ul>
>        
>         #NO.linkWrap = <li class="menuitem_NO"><div class="noSub"><a 
> href="#" onclick="swapitem(this);" class="arrow_right"><img border="0" 
> height="11" width="13" src="images/empty.gif"/></a>|</div></li>
>         NO.linkWrap = <li class="menuitem_NO"><div class="noSub"><img 
> border="0" height="11" width="13" src="images/empty.gif"/>|</div></li>
>         ACT = 1
>         ACT.linkWrap = <li class="menuitem_ACT"><div class="noSub"><img 
> border="0" height="11" width="13" src="images/empty.gif"/>|</div></li>
> 
>                 #Show access-restricted page in menu
>                 showAccessRestrictedPages = 158
>     }
>     ...
> 
> 
> 




More information about the TYPO3-dev mailing list