PDA

View Full Version : Category Description under Categories on index Page


fuchs1271
09-20-2007, 07:59 PM
Hello

Have anybody an idia how i can display the category description from even Category under the categorie title on the index page.look like this:

Bikes
Bikes in directory ...
Here comes the subcategories....

Thanks for help

Thomas

ibs
09-21-2007, 04:38 AM
Hello

Have anybody an idia how i can display the category description from even Category under the categorie title on the index page.look like this:

Bikes
Bikes in directory ...
Here comes the subcategories....

Thanks for help

Thomas

Please Clarify, It may be my understanding thats the issue, but did you say you want to show the category description right under the main category or subcategories?

Main Category description already works.. Which version are you using?
Again, please clarify so that I can give a more useful solution to your issue.
thanks!!!

fuchs1271
09-21-2007, 08:02 AM
I like the category description under the categoies not under the subcategories, lokk like this.

Main category
category description
subcategories

like this on this page: http://www.lync.de

i hope you can help me.

Thanks and Best Regards Thomas

ibs
09-21-2007, 11:18 AM
Ok i thought as much...

When you add or edit any Category the Description field is there for you to populate with your desired description.

Do you see it? "Description"

Greg
09-21-2007, 08:23 PM
Hi Thomas

What version are you using? I can more then likely give you the mod for this.

fuchs1271
09-30-2007, 03:29 PM
Sorry for delay i have self found the Problem and now it works fine.
Thanks.

Best regards Thomas

Greg
09-30-2007, 05:46 PM
Good :good:

For others that may want to know (this is how I did it)
Backup layout.php file before doing in case of mistake.

Open template layout.php and find:
$out .= "<div class=\"categ\"><a href=\"{$url}\">".htmlspecialchars($value['title']).$crossed."</a>{$cause}</div>";
The above will appear 2 times.
Now just below "each" one of those add this:
If you want the category description below the category link use:
$out .= "<div class=\"categ\">".htmlspecialchars($value['description']).$crossed."</div>";
If you want the meta description below the category link use:
$out .= "<div class=\"categ\">".htmlspecialchars($value['meta_description']).$crossed."</div>";