Table des matières
- ezstarrating : Une extension pour noter les articles
- ezstarrating : I - Contexte d'installation
- ezstarrating : II - Installation des extensions ezstarrating et ezjscore
- ezstarrating : III - Accorder les bons droits au rôle Anonymous
- ezstarrating : IV - Créer les tables MySQL
- ezstarrating : V - Modifier la classe
- ezstarrating : VI - Créer un article
- ezstarrating : VII - Le template d'affichage du datatype Star Rating
- ezstarrating : VIII - Francisation
ezstarrating : VI - Créer un article
Date de publication: le mercredi 9 novembre 2011 à 14h46
Dernière modification: par Pascal BOYER le mercredi 9 novembre 2011 à 17h38
À présent que la classe article est modifiée, il faut créer un nouvel article:
Fig. 17: Affichage de l'attribut Sart Rating lors de l'édition du nouvel article
Par défaut, le template utilisé pour afficher les articles sur le site public:
design/base/override/templates/full/article.tpl
ne produira évidemment aucun affichage de l'extension ezstarrating.
Il faut donc commencer par ajouter (aux alentours de la ligne 35) ces trois lignes à ce template:
<div class="attribute-star-rating">
{attribute_view_gui attribute=$node.data_map.star_rating}
</div>
Pensez à vider les caches une fois le template article.tpl modifié.
Commentaires














