• 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: "Sigurður E. Vilhelmsson" <email@hidden>
  • Date: Mon, 3 Sep 2007 15:52:13 +0000

Hi Atze,

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

Best regards,
Sigurdur

2007/9/3, Alexander Spohr <email@hidden>:
> Hi Sigurður,
>
> I am not sure if I just misunderstood your problem or if the simple
> solution would be a WORepetition running over the menu-array from the
> database?
>
> Regards,
>         atze
>
>
>
> Am 03.09.2007 um 16:43 schrieb Sigurður E. Vilhelmsson:
>
> > Hi all,
> >
> > I'm playing around with a navigational wrapper that I have problems
> > getting to work.
> >
> > The design is like follows:
> >
> > There are 13 buttons (10 aligned in two rows horizontally across the
> > top and 3 down the side).  This is all set up in css so I have:
> >
> > <div id="menu_01_button"><webobject name = "LinkToPage_01"></
> > webobject></div>
> > etc.
> >
> > and in the wod:
> >
> > LinkToPage_01: WOHyperlink {
> >       pageName = "Page_01";
> > }
> > etc
> >
> > Now, I'd like to be able to populate the buttons with names of pages
> > from the database, the reason being that the toplevel page names may
> > change from time to time and be moved about in the navigation bar, so
> > I'd rather not hard code them.
> >
> > I have two tables:
> > Menu - containing PK "menuID" and "number" and FK "pageID" with a
> > to-one relationship to Page.
> >
> > Page - containing, among others, attributes PK "pageID" and "title".
> >
> > What I thought I would do is create an NSArray of the Menu table,
> > sorted by "number" and add that to the menu divs:
> >
> > <div id="menu_01_button"><webobject name = "LinkToPage_01"><webobject
> > name ="Menu_01_title"></webobject></webobject></div>
> >
> > and in the wod:
> >
> > LinkToPage_01 : WOHyperlink {
> >       pageName = "Page_01";
> > }
> >
> > Menu_01_title : WOString {
> >         value = amenu.page.name;
> > }
> >
> > The code for this is eluding me, so any help would be appreciated.  If
> > you have any suggestions for an alternative approach to this, I'd also
> > be very grateful.
> >
> > Best regards,
> > Sigurdur
> >  _______________________________________________
> > Do not post admin requests to the list. They will be ignored.
> > Webobjects-dev mailing list      (email@hidden)
> > Help/Unsubscribe/Update your Subscription:
> > 40freeport.de
> >
> > 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

  • 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>)

  • 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