MantisBT - Piwigo
View Issue Details
0002404Piwigotemplatepublic2011.08.16 19:522015.03.12 14:56
tosca 
 
normalfeaturealways
newopen 
2.2.4 
 
any
Apache 1.3.x
0002404: Make the category description available whenever the category name is
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.

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)
No tags attached.
Issue History
2011.08.16 19:52toscaNew Issue
2011.08.16 19:52toscabrowser => any
2011.08.16 19:52toscaWeb server => Apache 1.3.x
2015.03.12 14:56plgCategoryalbums => template

There are no notes attached to this issue.