Les articles publiés sur le site
-
{collecte}
17 août 2010, par Mark — CriteriaThe collecte criteria is used to specify the "collation" to use for the request generated by the loop (by making a call with the "COLLATE" clause in MySQL [1]). The collecte criterion, (since SPIP 2.0), is used to force the SQL query generated by the loop to which it is attached to use a (...) -
{ !criterion operator value}
17 août 2010, par Mark — CriteriaThis is the logical operator for Complementarity, indicating that the complement of the operation should be executed. This syntax is principally useful for loops that involve multiple joins between tables, e.g. keywords/articles or documents/articles, etc. It makes it possible to select not (...) -
{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 (...)