Dotclear

Ticket #2162 (closed defect: fixed)

Opened 10 years ago

Last modified 10 years ago

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

comment:1 Changed 10 years ago by franck <carnet.franck.paul@…>

  • Status changed from new to closed
  • Resolution set to fixed

(In [e675d86e4e4e]) Add {{tpl:EntryCategoryDescription}}, closes #2162

Note: See TracTickets for help on using tickets.

Sites map