typo3 - TypoScript: mixed menu of public and access restricted pages -
i want make menu containing both public , access restricted pages, based on following requirements:
- public pages should linked, regardless whether user logged in or not
- access restricted pages should not linked if user not logged in
- access restricted pages should linked if user logged in
this have far:
lib.menu = hmenu lib.menu.1 = tmenu lib.menu.1 { // satisfies requirement 2 no.donotlinkit = 1 // satisfies requirement 3 usr = 1 }
however, expect, requirement 1 isn't satisfied way. can't come way make lib.menu.1.no
conditional based on page being public or access restricted.
if set no.donotlinkit = 1
normal pages not linked. want set showaccessrestrictedpages = <uid>
uid
id if page login form. see documentation. can set cur.donotlinkit = 1
, requirement 2.
Comments
Post a Comment