Ticket #2162 (closed defect: fixed)
EntryCategoryDescription
Reported by: | philippe | Owned by: | team |
---|---|---|---|
Priority: | normal | Milestone: | 2.9 |
Component: | module:themes | Version: | 2.8.2 |
Severity: | normal | Keywords: | |
Cc: |
Description
Il manque une balise de template pour afficher la description de la catégorie d'un billet dans le contexte du billet seul.
J'utilise pour le moment ce bricolage dans le fichier _public.php de mon thème
public static function EntryCategoryDescription($attr) { return '<?php $cat_id = $_ctx->posts->cat_id; $category = $GLOBALS[\'core\']->blog->getCategory($cat_id); echo html::clean($category->cat_desc); ?>'; } }
Un grand merci au sorcier qui l'ajoutera ;)
Change History
Note: See
TracTickets for help on using
tickets.
(In [e675d86e4e4e]) Add {{tpl:EntryCategoryDescription}}, closes #2162