I achived this once by splitting description using php explode.
lots of examples about on the web.
Your category description would be some thing like:
This is a nice category, please broswe our products.%%You are now at the bottom of our page you can click to the next page to see more from this category.
notice how you seperate by a unique identifier in this case - %%
then you replace the part that outputs your category description like this:
create a template override file here:
includes/templates/YOUR_TEMPLATE/templates/tpl_index_categories.php
replace this:
PHP Code:
<?php
// categories_description
if ($current_categories_description != '') {
?>
<div id="categoryDescription" class="catDescContent"><?php echo $current_categories_description; ?></div>
<?php } // categories_description ?>
with this:
PHP Code:
<?php
// categories_description
if ($current_categories_description != '') {
//added to split description
$splitthis = $current_categories_description;
$pieces = explode("%%", $splitthis);
?>
<div id="categoryDescription" class="catDescContent"><?php echo echo $pieces[0]; ?></div>
<?php } // categories_description ?>
and then towards the bottom where you want the secon part simply put this:
PHP Code:
<?php
// categories_description second part
if ($current_categories_description != '') {
?>
<div id="categoryDescription" class="catDescContent"><?php echo echo $pieces[1]; ?></div>
<?php } // categories_description ?>
heres what we are doing:
$splitthis = the category description variable
$pieces = explode("%%", $splitthis); - This is splitting the data into the sections.
echo $pieces[0]; // piece1 - this is where we echo out the piece 1
echo $pieces[1]; // piece2 - this is where we echo out the peice 2
%% would be placed between section 1 of your descriton and section 2 of your description.
you can split the data and spread it around the page where ever you like.
hope this helps.
Bookmarks