[template] Make the category description available whenever the category name is #170

Open
opened 2026-10-04 23:45:46 +02:00 by adam · 0 comments
Owner

Reported by tosca on 16 Aug 2011 17:52

Version: 2.2.4

Category name and description are information that are more or less 2 expressions of the same information: short vs long description.

In order for the webmaster to be able to include either one or the other in his template, the category description should be made available every time the category name is.

Additional information: As for now, I have found one case (I'll report others if I find any) in the get_categories_menu() function of functions_category.inc.php and amended the code as follows:

SELECT ';
// From CATEGORIES_TABLE
$query.= '
id, name, permalink, nb_images, global_rank, comment, ';
// From USER_CACHE_CATEGORIES_TABLE
$query.= '
date_last, max_date_last, count_images, count_categories';

(Just added comment in $query)

Piwigo Bugtracker #2404

**Reported by tosca on 16 Aug 2011 17:52** **Version:** 2.2.4 Category name and description are information that are more or less 2 expressions of the same information: short vs long description. In order for the webmaster to be able to include either one or the other in his template, the category description should be made available every time the category name is. **Additional information:** As for now, I have found one case (I&#039;ll report others if I find any) in the get_categories_menu() function of functions_category.inc.php and amended the code as follows: SELECT &#039;; // From CATEGORIES_TABLE $query.= &#039; id, name, permalink, nb_images, global_rank, comment, &#039;; // From USER_CACHE_CATEGORIES_TABLE $query.= &#039; date_last, max_date_last, count_images, count_categories&#039;; (Just added `comment` in $query) [Piwigo Bugtracker #2404](http://piwigo.org/bugs/view.php?id=2404) <!-- github-sync-id:97226311 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/Piwigo#170