• 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: Building a navigational component
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Building a navigational component


  • Subject: Re: Building a navigational component
  • From: Guido Neitzer <email@hidden>
  • Date: Mon, 3 Sep 2007 10:35:30 -0600

On 03.09.2007, at 09:52, Sigurður E. Vilhelmsson wrote:

Yes, that would probably be the way to go, but how do I wrap the
repetition around the different menu divs?

Get the stuff into an array:

// define an ivar just for the list (make it private, but that's too long here)
public NSArray listOfEntries;


// for iterating over the list
public MenuEntry currentEntry;

// get the entries:
listOfEntries = EOUtilities.objectsForEntityNamed(editingContext, "MenuEntry");



in the html (inline notation):

<wo:loop list="$listOfEntries" item="$entry">
	<wo:WOGenericContainer elementName="div" id="$entry.buttonId">
		<wo:link pageName = "$entry.pageName" string="$entry.name" />
	</wo:WOGenericContainer>
</wo:loop>

Or similar, that is just written down here in mail, so no guarantees.

cug _______________________________________________
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


  • Follow-Ups:
    • Re: Building a navigational component
      • From: Guido Neitzer <email@hidden>
References: 
 >Building a navigational component (From: "Sigurður E. Vilhelmsson" <email@hidden>)
 >Re: Building a navigational component (From: Alexander Spohr <email@hidden>)
 >Re: Building a navigational component (From: "Sigurður E. Vilhelmsson" <email@hidden>)

  • Prev by Date: Re: Building a navigational component
  • Next by Date: Re: Building a navigational component
  • Previous by thread: Re: Building a navigational component
  • Next by thread: Re: Building a navigational component
  • Index(es):
    • Date
    • Thread