Zen Cart Logo
Forums / Customization from the Admin / Are there variables available to diff between Category and Sub-cat pages?

Are there variables available to diff between Category and Sub-cat pages?

Views: 839

Results 1 to 7 of 7
11 Dec 2012, 11:55 PM
#1
tcarden avatar

tcarden

Zen Follower

Join Date:
Oct 2012
Posts:
282
Plugin Contributions:
0

Are there variables available to diff between Category and Sub-cat pages?

Are there any variables available that can determine which page the user is on. right now, the main-content area on those 2 pages are too much the same i need to modify some elements depending on which page the user is on.

http://starlight.dev.ableengine.com/#

http://starlight.dev.ableengine.com/index.php?main_page=index&cPath=6

I believe that 'Body_id' and 'Current_page_base is index' wouldn't work because those vars get shared across many pages and im just trying to affect the sub-cat pages.

thanks!

12 Dec 2012, 12:07 AM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Are there variables available to diff between Category and Sub-cat pages?

im just trying to affect the sub-cat pages.
What is the exact issue you are trying to solve

12 Dec 2012, 12:35 AM
#3
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Are there variables available to diff between Category and Sub-cat pages?

There's no way to make a blanket distinction between top category and subcategory pages. You can make per-category stylesheets which affect only the category named; perhaps making a rule in the main stylesheet affecting all categories, and per-category stylesheets for the less numerous variety (probably top cats), would do what you want. As kobra says, details of what you want will let us give the best advice.

12 Dec 2012, 3:09 AM
#4
tcarden avatar

tcarden

Zen Follower

Join Date:
Oct 2012
Posts:
282
Plugin Contributions:
0

Re: Are there variables available to diff between Category and Sub-cat pages?

thanks for the replies,

for one i'm trying to turn off the category image on the sub-category pages. if i turn off in the 'layout settings'
i think it is 'Categories - always show main page', then basically i don't have home page, since the home page is display
of all cat. images w/ links.

thanks for any help on this

there were some other design issues i have to adhere to, like they want to see the sub cat name as a header on the sub cat pages.

12 Dec 2012, 3:12 AM
#5
tcarden avatar

tcarden

Zen Follower

Join Date:
Oct 2012
Posts:
282
Plugin Contributions:
0

Re: Are there variables available to diff between Category and Sub-cat pages?

gjh42:

There's no way to make a blanket distinction between top category and subcategory pages. You can make per-category stylesheets which affect only the category named; perhaps making a rule in the main stylesheet affecting all categories, and per-category stylesheets for the less numerous variety (probably top
cats), would do what you want. As kobra says, details of what you want will let us give the best advice.

yes i will try the stylesheet approach, thanks.

here are the links - maybe obvious. the home page obviously needs the cat. images,
http://starlight.dev.ableengine.com/#

and then the sub-cat, as per design instructions should not be there,
http://starlight.dev.ableengine.com/index.php?main_page=index&cPath=6

thanks guys

12 Dec 2012, 3:13 AM
#6
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Are there variables available to diff between Category and Sub-cat pages?

There are switches for the Categories Image on the Configuration ... Product Listing ...

Include Product Listing Sub Categories Image
Do you want to include the Sub Categories Image on the Product Listing?

true
false

12 Dec 2012, 3:19 AM
#7
tcarden avatar

tcarden

Zen Follower

Join Date:
Oct 2012
Posts:
282
Plugin Contributions:
0

Re: Are there variables available to diff between Category and Sub-cat pages?

Yes!!, thanks.

i'd gone to Config-> Product Info, but not Product Listing