what I am looking for is something along the lines of:
{
name = "Agenda";
displayName = "Agenda";
action = "session.navController.listAgendasForUser";
conditions = ("session.user.canSeeAgendas");
childrenChoices = {
isSelected = ("SearchAgenda", "CreateAgenda")
};
}, {
name = "AnotherMenu";
action = "session.navController.listAnotherMenuForUser";
childrenChoices = {
isSelected = ("SearchAM", "CreateAM")
};
}
the children only show if the parent isSelected.
or rules that show the children if the parent is selected
Ted
--- On Wed, 9/19/12, Jesse Tayler <[email protected]> wrote:
> From: Jesse Tayler <[email protected]>
> Subject: Re: ERXModernNavigationMenu ??
> To: "Theodore Petrosky" <[email protected]>
> Cc: "WebObjects" <[email protected]>
> Date: Wednesday, September 19, 2012, 11:02 AM
>
> you mean you want to have a logic value from a java method
> determine some state in child submenus?
>
> you can optionally make a choice follow a key path like
> this:
>
> children =
> "session.mainMenuElements";
>
> where mainMenuElements is a method returning a string key,
> which in this case is simply the word "hasUser" or "noUser"
>
> a childChoice with a key and value for each expected key
> will return only the values from the key given in the method
> call:
>
> childrenChoices = {
> hasUser =
> ("ListMtly","SearchMtly","CreateMtly");
> noUser = (
> "ListMtly","SearchMtly");
>
> so here, if the user is logged in, basically the menu has
> some more options on it.
>
> maybe that helps?
>
>
>
> On Sep 19, 2012, at 10:54 AM, Theodore Petrosky <[email protected]>
> wrote:
>
> > OK, so I learned how to substitute the
> ERXModernNavigationMenu in my MenuHeader but writing rules
> to target it is eluding me.
> >
> > What I want to accomplish is that all children menu
> items are not displayed unless the parent is selected.
> >
> > Ted
> > _______________________________________________
> > Do not post admin requests to the list. They will be
> ignored.
> > Webobjects-dev mailing list ([email protected])
> > Help/Unsubscribe/Update your Subscription:
> > https://lists.apple.com/mailman/options/webobjects-dev/jtayler%40oeinc.com
> >
> > This email sent to [email protected]
>
>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to [email protected]