Zen Cart Logo
Forums / Setting Up Categories, Products, Attributes / Showing category descripton only on the first page.

Showing category descripton only on the first page.

Views: 449

Results 1 to 3 of 3
23 Jun 2015, 11:01 PM
#1
mrcastle avatar

mrcastle

Zen Follower

Join Date:
Feb 2010
Posts:
205
Plugin Contributions:
0

Showing category descripton only on the first page.

Yes, I did some major searches in the forums for this but no luck. I want to hide the category description from showing on pages 2,3,4 etc. As it stands, the description at the top of the category page shows up on every page afterwards, which I do not want. Thx

23 Jun 2015, 11:51 PM
#2
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Showing category descripton only on the first page.

Are you referring to the situation where a category has either many subcategories or many products that cross over several pages which are selectable by either a dropdown or a link click (typically) from a toolbar positioned at the top or bottom or both?

Basically would need to wrap the category description with a check for the current page such that if the selected page is greater than 1 then to not show the text. The alternative is to display the text only if there is no page number (condition when first arriving to the page) or if equal to 1. (Condition when using the links to navigate away and back to page 1.)