Zen Cart Logo

Body ID and Cpath

Locked

Views: 1,742

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
15 Dec 2008, 1:49 PM
#1
dreamlex avatar

dreamlex

New Zenner

Join Date:
Dec 2008
Posts:
57
Plugin Contributions:
0

Body ID and Cpath

I have searched thru FAQ or Forum - they may be already answered and I apologize if this is a case.

I set the navigation links to cPath="number x" - for an example,
?main_page=index&cPath=5 will take me to specific product page, I believe.

  1. is it possible to call ?main_page=dresses instead of ?main_page=index&cPath=5 for links, product pages showing right products according to products' names and url paths in address bar of the browser? If so, how do we make it work with ?main_page="products_name"?

  2. I intend to use different body id for the specific product pages. For an example, if I click "dresses" link on nav menu, it should go to dresses page with "active" nav tab for dresses (different color after click tab).

For both, do i have to copy main_page template and make them into tpl_dress.php with <body id="dresses">? will it show right products under dress category?

Help will be very much appreciated. I am really a noob at zencart but hopefully i will be able to customize everything as time goes.

15 Dec 2008, 3:22 PM
#2
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Re: Body ID and Cpath

You can use any SEO url module for the first question:
Simple Seo Url (http://public.rubikintegration.com/)
Ultimate Seo Url (in free add-ons)
Magice Seo Url (commercial)
Power Seo Url (commercial)

For the second question, why dont you just check cPath, if it is current then you add the class "active" for example to the specific tab

15 Dec 2008, 4:11 PM
#3
dreamlex avatar

dreamlex

New Zenner

Join Date:
Dec 2008
Posts:
57
Plugin Contributions:
0

Re: Body ID and Cpath

Thank you for your reply.
I will take a look at SEO addon.

For the second question, why dont you just check cPath, if it is current then you add the class "active" for example to the specific tab

I am not sure what you mean. how to check cPath? Is it supposed to be coded in tpl_main_page.php with if statement?