Forum OpenACS Development: Re: A Model for the Navigation Bar

Collapse
Posted by Jim Lynch on

In the middle of my (re)discovery of how the whole navigation bar thing works, I began to concentrate on the context list, with the inconsistant single element at the end, and I decided that my main data structure would be a list containing all the two-element lists, but leaving out the single title element at the end.

So while a value suitable for context might look like:

{ {url1 tltle1} {url2 title2} {url3 title3} {This Page's Title} }

a value suitable for context_fragment would be everything except the last element:

{ {url1 tltle1} {url2 title2} {url3 title3} }

Note that context_fragment is the only variable involved in the navigation bar to get passed from page to page. In the next section, we look at exactly how to do that, and how to make the context_fragment grow and shrink.