I use pyrocms to develop a site. I need to use stream for a view. I would like only the entries corresponding to the current user to be displayed. I use the following query (user_id is name of the field on my database)
{{ streams:cycle stream="{{ stream }}" where="`user_id`='{{user:id}}'" order_by="nom" sort="asc"}}
Pyrocms works like if my request stop before the where clause. and it show me this on the page :
1 '" order_by="nom" sort="asc"}}
and I view all results on the page (all entries for all users).
If I'm using this request it works :
{{ streams:cycle stream="{{ stream }}" where="`user_id`=1" order_by="nom" sort="asc"}}
What do I do wrong? Can I use variable on the where clause ?
Thanks Matthieu