FLUX RSS



ACCUEIL / FORUMS / QUESTIONS TECHNIQUES / FETCH SUR ATTRIBUT DE CLASSE




sondages
Avez-vous déjà utilisé les exports statiques ? :
oui
non
RESULTATS | SONDAGES
liens
eZ systems
http://ez.no
PHPEdit
http://www.waterproof.fr/
AFUL
http://www.aful.org
Framasoft
http://www.framasoft.net
fetch sur attribut de classe

Vous devez être connecté pour utiliser le forum. Vous pouvez le faire ici.

Auteur Message

thierry cazalet

Lundi 31 Octobre 2005 10:41:14 am

fetch sur attribut de classe

bonjour,

je suis en train de faire un système de news, ces news peuvent êtres de catégories différentes (brève, information, agenda et communiqué)

dans ma home je veux extraire les news qui sont de catégorie brève.

j'utilise ça pour se faire :
{def $news = fetch( 'content', 'list', hash('parent_node_id', 125, 'sort_by', array('published', false()), 'class_filter_type', 'include', 'class_filter_array', array('and', 194, '=', 'Brève')), 'limit', 5 )}

194 étant l'ID de la sélection (brève, information , ...)
mais ça ne marche pas, quelqu'un a une idée ?

thierry cazalet

Lundi 31 Octobre 2005 10:52:20 am

Re: fetch sur attribut de classe

bon ok, j'ai ma solution :

{def $news = fetch( 'content', 'list', hash('parent_node_id', 125, 'sort_by', array('published', false()), 'class_filter_type', 'include', 'class_filter_array', array(19),'attribute_filter', array(array('194', '=', 0))), 'limit', 5 )}

actualités
Traduction d'un tutorial eZ
eZ publish 4.0 est sorti
EzPublish 3.9 enfin disponible !
Ez Publish 3.9 RC2 est en ligne !
Ez Publish 3.9 RC1 disponible !
références
Site ohmycom
OhmyBlog