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

JoH info at cybercraft.de
Thu Sep 15 12:43:15 CEST 2005


> (of course you can solve the problem using ts (look at the mail from
> "JoH" <info at cybercraft.de>), but that maybe not that easy for normal
> users)

> (of course you can solve the problem using ts (look at the mail from
> "JoH" <info at cybercraft.de>), but that maybe not that easy for normal
> users)

??? - You didn't really understand the solution.

Your editors just create and edit content elements - nothing more, nothing
less.
Restricted content is placed in the column "normal" (you can rename this
column to "restricted" if you like), while "free" content is placed in the
column "left" (renamed to "free").

Then you place just this TypoScript as ext+ Template into the root page of
your restricted area:

temp.otherContent = COA
temp.otherContent {
    10 = COA
    10 {
        if.isFalse.numRows < styles.content.getLeft
        10 = RECORDS
        10 {
            # get your default record here
        }
    }
    20 < styles.content.getLeft
    30 < styles.content.loginform
}

[loginUser = *]
page.10.subparts.content < styles.content.get
[else]
page.10.subparts.content < temp.otherContent
[global]


This will show at least a loginform and (if available) content from the left
column, where your editors can place some teasers.
You setup a default element, that is shown if there is no content in the
left column, so that your editors don't have to create teasers for every
page.
Only if the user is logged in, he will see the content coming from the
"restricted" column.

So what is the "not so easy" part for your editors now? - IMHO every other
approach can't be as easy as this solution.

Joey

-- 
Wenn man keine Ahnung hat: Einfach mal Fresse halten!
(If you have no clues: simply shut your knob sometimes!)
Dieter Nuhr, German comedian
openBC: http://www.openbc.com/go/invuid/Jo_Hasenau





More information about the TYPO3-english mailing list