Les articles publiés sur le site
-
{criterion !operator value}
17 août 2010, par Mark — CriteriaThis is the logical negation operator; it inverts the meaning of whatever operator immediately follows it. id_rubrique != 12: returns the data from sections with an (#ID_RUBRIQUE) ID that is not equal to 12. titre !== ^(a|e|i|o|u|y): returns data from the objects (articles, sections...) which (...) -
{criterion ?operator value}
17 août 2010, par Mark — CriteriaTake the criterion into account only if a value exists in the environment for that criterion . The criterion will only be evaluated by the loop if there is a variable with the same name in the current environment. For example: date ?!= #ENVdate, email ?LIKE %(#ENVemail)% or perhaps: If there is (...) -
{criterion ?}
17 août 2010, par Mark — CriteriaA conditional criterion (criteria associated with the ? logical operator) will only be taken into account by the loop if the data required by that criterion exist in the execution environment of that loop. If there is an id_rubrique (nn) in the execution environment of the loop, then the loop (...) -
{criteria IN value1, value2[, value3,..., valueN]}
17 août 2010, par Mark — Criteria... IN ... available from spip onwards, restricts the selection of results that have a criterion value equal to one of a finite collection of valid values. xxxx IN a,b,c,d available from spip onwards, restricts the display of results that have the xxxx criterai equal to a, b, c or d. The (...) -
{criteria LIKE value}
17 août 2010, par Mark — CriteriaThe ... LIKE ... criteria corresponds to the SQL comparison operator LIKE. For example, we can search for AUTEURS (authors) whose login name starts with paul: login LIKE paul% We can also use a SPIP tag within the criteria, but you will need to enclose it by parentheses to obtain the tag's (...)