• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: ERXModernNavigationMenu ??
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ERXModernNavigationMenu ??


  • Subject: Re: ERXModernNavigationMenu ??
  • From: Theodore Petrosky <email@hidden>
  • Date: Wed, 19 Sep 2012 09:07:57 -0700 (PDT)

so there is a way. I am re-reading the Navigation.html and there is:

{
	name = Movie;
	action = "session.navController.listMovieAction";

	/*
		displayName takes precedence over name for display purposes.
		If no displayName is provided, name is used.  Localized keys are
		"Nav.<displayName>" and "Nav.<name>" respectively.
	*/
	displayName = "MovieKey";
	children = ("CreateMovie");
		/*
		Oddly, instead of specifying an array for childrenConditions,
		a comma separated string of keyPaths is expected instead. All
		children conditions must be met or no children will be shown
		for the menu item.
		*/
childrenConditions = "session.user.hasAdministratorAccessLevel,session.user.hasEmployeeAccessLevel";
	}


so why is it that is sometimes is so simple:

childrenConditions = "isSelected";

gives me exactly what I want


Ted



--- On Wed, 9/19/12, Jesse Tayler <email@hidden> wrote:

> From: Jesse Tayler <email@hidden>
> Subject: Re: ERXModernNavigationMenu ??
> To: "Theodore Petrosky" <email@hidden>
> Cc: "WebObjects" <email@hidden>
> 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@hidden>
> 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@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


References: 
 >Re: ERXModernNavigationMenu ?? (From: Jesse Tayler <email@hidden>)

  • Prev by Date: Re: ERXModernNavigationMenu ??
  • Next by Date: WebObjects Adaptor for Apache 2.4.3
  • Previous by thread: Re: ERXModernNavigationMenu ??
  • Next by thread: WebObjects Adaptor for Apache 2.4.3
  • Index(es):
    • Date
    • Thread