[TYPO3-english] TypoScript: mixed menu of public and access restricted pages
Leon de Rijke
leon at cmsworks.nl
Tue Mar 11 10:58:32 CET 2014
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
}
However, as you would expect, requirement 1 isn't satisfied this way. I can't come up with a way to make lib.menu.1.NO conditional based on the page being public or access restricted.
Is there anyway to satisfy all three requirements?
(Cross-posted on StackOverflow, but didn't get an answer there yet. Will update both.)
More information about the TYPO3-english
mailing list