Re: Building a navigational component
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