Navigation

Contactez-nous

Kitpages
17 rue de la Frise
38000 Grenoble
tel : 04 58 00 33 81

Par Philippe Le Van (@plv) Dernière mise à jour : 01 February 2012

KitpagesUserGeneratedBundle

Introduction

Ce bundle a pour objectif de pouvoir ajouter facilement un système de commentaire, de rating, de like,... sur n'importe quel contenu d'un site Symfony2

Pour l'instant en version alpha, le bundle propose un système de commentaires fonctionnel, simple et peu intrusif dans un code existant.

Exemple d'utilisation

Il faut ajouter le bundle KitpagesUserGeneratedBundle ainsi que le KitpagesUtilBundle dans la liste des bundle de votre site.

Il n'y a aucune configuration dans config.yml

Ensuite il suffit d'ajouter le code suivant dans un render twig

(où "myItem" référence le contenu sur lequel on ajoute le système de commentaire, vous mettez le format de chaine de caractère que vous voulez)

<h3>Form to add a comment</h3>
{% render 'KitpagesUserGeneratedBundle:Comment:newPost' with {
   'itemReference': 'myItem'
} %}

<h3>commentList</h3>
{% render 'KitpagesUserGeneratedBundle:Comment:displayPostList' with {
    'itemReference': 'myItem'
} %}

Commentaires

Ajouter un commentaire
I am regular visitor, how are you everybody? This article posted aat this site iis truly good.
Excellent goods from you, man. I've understand your stuff previous to and you're just too excellent.
I actually like what you've acquired here, really lke what you are 
saying and the way in which you say it. You make it entertaining and yyou still care for 
to keep it sensible. I can not wait to read far more 
from you. This iss really a wonderful website.
I have been exploring for a bit for anny high quality articles or blog posts 
in this sort of house . Exploring in Yahoo I finally stumbled upon this web site.
Reading this information So i'm glad to express that I've an incredibly excellent uncanny feeling I discvered 
just what I needed. I so much without a doubt woll make sure to do not forget this site and give iit a glance regularly.
bjbjk
tt
uuuuuu
ha
aha
kn
frfrfrnk
dd
ddddqd dqsdsq
fdgf
fgbgfbdvgfd
FGUHIJLK
CGFVHGBJHK
jlkm;!:
nkjlkml: