Re: D2W rule controlled NavigationMenu.plist?
Re: D2W rule controlled NavigationMenu.plist?
- Subject: Re: D2W rule controlled NavigationMenu.plist?
- From: Theodore Petrosky <email@hidden>
- Date: Thu, 07 Jan 2016 08:22:47 -0500
Thanks Fabian, I knew there was a documentation file somewhere that I couldn’t find.
Ted
> On Jan 7, 2016, at 7:10 AM, Fabian Peters <email@hidden> wrote:
>
> Hi Markus,
>
>> Here is my problem. Is there a way to dynamically control what is shown by NavigationMenu.plist?
>> Background: I have 4 main tabs with the rightmost being for admin users only. Can I show/hide tabs (maybe also 2nd and 3rd level navigation) on conditions given by the currently logged-in user?
>>
>> Is something like session.currentUser.isAdmin=1 and tabname = 'TAB_ADMIN' => showTab = 1 possible?
>
>
> You don't need rules to do that, although you could use them. You can use any of "children", "childrenChoices" or "childrenConditions" to get what you want, e.g.:
>
> {
> children = "session.navigationRootChoice";
> childrenChoices = {
> admins = ("Foo", "Bar");
> other = ("Bar");
> };
> action = "session.factory.home";
> name = Root;
> },
>
> Have a look at wonder/Frameworks/Core/ERExtensions/Documentation/Navigation.html.
>
> Fabian
>
>> Thanks a lot
>> ---markus---
>> _______________________________________________
>> Do not post admin requests to the list. They will be ignored.
>> Webobjects-dev mailing list (email@hidden)
>> Help/Unsubscribe/Update your Subscription:
>>
>> This email sent to email@hidden
>
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden