[TYPO3-english] TypoScript: mixed menu of public and access restricted pages

Xavier Perseguers xavier at typo3.org
Tue Mar 11 11:28:12 CET 2014


Hi,

Leon de Rijke wrote:
> I want to make a menu containing both public and access restricted
> pages, based on the following requirements:
> 
> - public pages should be linked, regardless whether the user is logged
> in or not
> - access restricted pages should not be linked if the user is not logged in
> - access restricted pages should be linked if the user is logged in
> 
> This is what I came up with so far:
> 
> lib.menu = HMENU
> lib.menu.1 = TMENU
> lib.menu.1 {
>    // Satisfies requirement 2
>    NO.doNotLinkIt = 1
>    // Satisfies requirement 3
>    USR = 1
> }

There's nothing you need to do, this comes automatically with TYPO3,
just protect your pages as you wish.

Restricted pages will NOT be shown at all though (even not the text
without link) if not logged-in, but I don't see why you would want to
show protected page titles if you are not authorized.

Kind regards

-- 
Xavier Perseguers
TYPO3 CMS Team Member

TYPO3 .... inspiring people to share!
Get involved: http://typo3.org



More information about the TYPO3-english mailing list