Navigation Help
4 posts by 2 authors in: Forums > CMS Builder
Last Post: July 20, 2010 (RSS)
By viral - July 16, 2010
Hi,
CMS works very well for all our clients and encourage us to provide something more.
e.g. If we have Main Links - 1, 2 and 3. Sublinks for "2" are 2a,2b and 2c. Now, if you click on 2, it shows the content of the first sublink which is 2a.
visit : http://www.aberdeenmall.ca/shoppinginformation.php
Here is the request from the client.
When you click on "2", it should show the content for "2", not "2a". content for 2a will show up only when you click on "2a".
Below is the project link where client has this requirement.
http://www.aberdeenmall.ca/events.php
The challenge is I am not used to PHP scripting so, I don't know how it works.
I would greatly appreciate if you could reply ASAP.
Let me know if you need FTP info to work on this file.
Many thanks and have a great weekend.
Viral Patel
Senior Graphic/ Website Designer
SiteInMotion
CMS works very well for all our clients and encourage us to provide something more.
e.g. If we have Main Links - 1, 2 and 3. Sublinks for "2" are 2a,2b and 2c. Now, if you click on 2, it shows the content of the first sublink which is 2a.
visit : http://www.aberdeenmall.ca/shoppinginformation.php
Here is the request from the client.
When you click on "2", it should show the content for "2", not "2a". content for 2a will show up only when you click on "2a".
Below is the project link where client has this requirement.
http://www.aberdeenmall.ca/events.php
The challenge is I am not used to PHP scripting so, I don't know how it works.
I would greatly appreciate if you could reply ASAP.
Let me know if you need FTP info to work on this file.
Many thanks and have a great weekend.
Viral Patel
Senior Graphic/ Website Designer
SiteInMotion
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?
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
Chris
Re: [chris] Navigation Help
By viral - July 20, 2010
Hi Chris,
Please find attached page.
Thanks,
Viral
Please find attached page.
Thanks,
Viral
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:
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:
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.
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
Chris