Navigation Help

4 posts by 2 authors in: Forums > CMS Builder
Last Post: July 20, 2010   (RSS)

Re: [viral] Navigation Help

By Chris - July 19, 2010

Hi Viral,

Could you please post the complete PHP source code for your events.php page so I can see how you have things currently set up?
All the best,
Chris

Re: [chris] Navigation Help

By viral - July 20, 2010

Hi Chris,

Please find attached page.

Thanks,
Viral
Attachments:

events.php 16K

Re: [viral] Navigation Help

By Chris - July 20, 2010 - edited: July 20, 2010

Hi Viral,

There are many ways to accomplish this. Since you're already using a Category Menu for your Events pages, the simplest solution I can think of for you would be to add a top-level category to it, above all your existing records.

For example, the new record would be in red:

- Events
- Event Listing
- Group Registration


Then it's simply a matter of getting your menu to display the sub-items instead of the entire tree, so you don't end up with this:

EVENTS
- Events
- Event Listing
- Group Registration


To do this, you'd likely want to use the 'rootCategoryNum' argument for getCategories(). You'll also need to play around with how you get the selected category from the URL.

I hope this helps! Please let us know if you have any questions.
All the best,
Chris