|
Posted by jsd219 on 06/14/07 05:11
On Jun 13, 11:25 pm, petersprc <peters...@gmail.com> wrote:
> You can generate the menu from an array. For example:
>
> $sections = array(
> 'about' => array(
> 'team' => 'Our Team',
> 'directions' => 'Directions',
> 'history' => 'History'
> ),
> 'services' => array(
> 'design' => 'Design',
> 'construction' => 'Building & Construction',
> 'repair' => 'Repair'
> )
> )
>
> To print your menu:
>
> $currentSection = 'about';
> $contents = $sections[$currentSection];
> foreach ($contents as $dest => $title) {
> $links .= "<li><a href=\"$item\">$title</a></li>"
>
> }
>
> On Jun 13, 11:12 pm, jsd219 <i...@musiclanerecording.com> wrote:
>
> > I am a newbie for sure;
>
> > problem,
>
> > I have a page that has dynamically generated sections at the top, when
> > I click on one of the sections I would like the list of categories
> > associated with the section to display in my left navigation; If I
> > click a different section the current navigation list would be
> > replaced by the categories associated with the new section I clicked
> > on and so on.
>
> > I am sure this is easy for most of you but it is killing me. :-)
>
> > God bless
> > jason
I don't quite follow, :-) if you go to: http://www(dot)discbid(dot)net
you can see what i am talking about. notice the section at the top
next to catalog. It currently has 7 entries, camryn, deda,
grandpa...but it can change. it is dynamically generated so the client
can add to or take away any of these sections. when you click on one
of the sections, the navigation bar at the left should populate with
all the categories created under that section, this too is dynamically
generated and can change.
Any and all help is greatly appreciated
God bless
jason
[Back to original message]
|