New Zenner
- Join Date:
- Jun 2006
- Posts:
- 21
- Plugin Contributions:
- 0
Category descriptions on the main page?
I have the categories displayed on the main page. In addition to the category name & photo, I'd like to have the category description displayed. Unfortunately, it doesn't seem easy to do this. I edited line 40 of modules/mytemplate/category_row.php to include:
[deleted for legibility] . $categories->fields['categories_name'] . '</a><br />' . $categories->fields['categories_description']);
But it appears that the field categories_description isn't included in the array from the database results. I found classes/category_tree.php and added cb.categories_description to each of the quesries, but It's still not displaying the description.
I then dug deeper and tried changing modules/mytemplate/category_row.php to:
[deleted] . $categories->fields['categories_name'] . '</a><br />' . $current_categories_description);
and then:
[deleted] . $categories->fields['categories_name'] . '</a><br />' . $categories_description_lookup->fields['categories_description']);
neither of which helped.
So how do I get the category descriptions on my home page? There must be an easy way that I'm missing.
Thanks!