Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Adding extra Div on Categories page

Adding extra Div on Categories page

Locked

Views: 610

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
27 Nov 2010, 4:51 PM
#1
lightup avatar

lightup

New Zenner

Join Date:
Sep 2010
Posts:
59
Plugin Contributions:
0

Adding extra Div on Categories page

Hi,

Currently when you use the admin to create textual content for a category page the text is placed in the "categoryDescription" div above the tabs which can be seen here Megaman Lamps. Could someone advise me how to best add an extra divider below the tabs so that the information could be below the tabs? I would however still like to keep the "categoryDescription" div incase I wish to use both?

Any help will be appreciated.

Kind regards.

27 Nov 2010, 5:03 PM
#2
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Adding extra Div on Categories page

To move the text would require only adding a copy of the tpl_index_categories.php file to your template and moving the following block to where you want it

<?php
// categories_description
    if ($current_categories_description != '') {
?>
<div id="categoryDescription" class="catDescContent"><?php echo $current_categories_description;  ?></div>
<?php } // categories_description ?>

Adding another text block is a much bigger deal extending the categories description table and then editing the admin categories.php file allow you to extract, display and update the data you put in the new database column, including possibly hooking up an HTML editor to the new form field. Do you have programming skills?

27 Nov 2010, 6:01 PM
#3
gjh42 avatar

gjh42

Black Belt

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

Re: Adding extra Div on Categories page

There is a mod for this: Short Description for Categories.
It was last updated for v1.3.7, though, so may need to be upgraded if any of the base files have been modified since then.