Else, what you first wanted to do might better be written like this (but
I'm not sure about the syntax) : <BOUCLE_rubriques(RUBRIQUES)
{id_rubrique=1|2|3|4} so I let someone else confirm or correct me
Good luck and welcome in squirrel-land
Etienne.
On Sun, January 13, 2008 10:03 am, craig wrote:
Hello I am very new to spip and am having a problem outputting two
seperate
menus.
I want to have a horzintal menu with some items and a left nav with others
My question is how do you select the sections?
<BOUCLE_rubriques(RUBRIQUES) {id_rubrique=1}
gives me the first section
but how can i specify the ones i want in the loop?
obviously i cant do
<BOUCLE_rubriques(RUBRIQUES) {id_rubrique=1,2,3,4}
I think this is the most scalable method, as you won't have to go back to the template to change which sections goes where.
Note the use of two criterions:
{titre_mot=...} selects all sections with this specific keyword attached. Note that you have to configure the group of keyword to go with sections (a checkbox when u create the keyword)
{doublons} is a more 'tricky' criterion but is very useful. Every sections seen in a loop with a doublons, won't be displayed by consecutive loops with the {doublons} criterion. You can also create separate doublons with {doublons name}.
{!doublons name} would show only the sections seen by a previous doublons loop with that name.
Else, what you first wanted to do might better be written like this (but
I'm not sure about the syntax) : <BOUCLE_rubriques(RUBRIQUES)
{id_rubrique=1|2|3|4} so I let someone else confirm or correct me
Ok, this is not the right syntax. If you want to explicitly select multiple ids, you have to write:
{id_rubrique IN 1,2,3,4}
and to select all but these ones:
{id_rubique !IN 1,2,3,4}
On Mon, January 14, 2008 12:19 pm, Pierre Andrews wrote:
Ok, this is not the right syntax. If you want to explicitly select
multiple ids, you have to write:
{id_rubrique IN 1,2,3,4}
and to select all but these ones:
{id_rubique !IN 1,2,3,4}
Great ! Thanks for the explanation ! Now, I know !