SPIP-Contrib

SPIP-Contrib

عربي | Deutsch | English | Español | français | italiano

273 Plugins, 191 contribs On SPIP-Zone, 29 visitors now

Homepage > Site navigation > Tris conditionnels > Displaying items with a specific keyword

Displaying items with a specific keyword

22 January 2007 – by Loiseau2nuit

All the versions of this article: [English] [français]

This loop lets your site display items (section, article, news, ...) according to their attached keyword(s).

<BOUCLE_keyword (ARTICLES) {titre_mot=display} >
<a href="#URL_ARTICLE">#TITRE</a>
</BOUCLE_keyword>

How does it work?

-  Spip.net’s documentation on keywords.

-  One can easily replace ARTICLES with RUBRIQUES, BREVES or SITES depending on what you wish to display. If doing so, just adapt the content of “href” destination (#URL_RUBRIQUE, #URL_BREVE et #URL_SITE).

-  The keyword used in this example is ’display’. You can easily replace it by another one of your choice. When so doing, make sure not to have two or more keywords with the same name (’titre’) in two or more different keyword groups, unless you are intending to include the items marked by all of them.

-  If you liked this, you might read this article: Excluding items with a particular keyword

P.S.

Originally posted by Olivier GENDRIN. Translated from French by Etienne B. ( loiseau2nuit [AT] no-log.org )

Back to top

Comment on this article

Who are you?
  • [Log in]

To show your avatar with your message, register it first on gravatar.com (free et painless) and don't forget to indicate your Email addresse here.

Enter your comment here Les choses à faire avant de poser une question (Prolégomènes aux rapports de bugs. )
Add a document

Back to top

Here they're talking

  • (fr) Zpip-dist en HTML5

    15 juin 2010 – 10 <blink style='color:red;'>public|spip|ecrire:commentaires</blink>

    Une surcharge des squelettes Zpip-dist qui tire parti des nouvelles balises offertes par la spécification HTML5. Attention, ce plugin n’est plus compatible avec les nouvelles versions de Zpip, qui a connu plusieurs incompatibilités de nomenclature (...)

  • (fr) Une licence pour un article

    18 avril 2007 – 25 <blink style='color:red;'>public|spip|ecrire:commentaires</blink>

    Sur une idée originale de erational, voici un plugin permettant de lier une licence à un article.

  • (fr) Plugin Parrainage

    6 novembre 2011 – <blink style='color:red;'>public|spip|ecrire:commentaire</blink>

    Permettre aux utilisateurs d’inviter leurs contacts à s’inscrire sur le site. Description Vous connaissez le web moderne et son cortège d’applis toujours en version « beta » et de buzz sur le dernier réseau à la mode ? Vous voulez vous aussi vous y (...)

  • (fr) Formulaire de contact libre

    27 avril 2011 – 36 <blink style='color:red;'>public|spip|ecrire:commentaires</blink>

    Dans SPIP il n’y a pas un formulaire de contact, mais autant de formulaires de contact que d’auteurs. Cette phrase de Romy, dans son article Une page de contact dans mon SPIP, pointe un petit manque de SPIP. La possibilité d’insérer rapidement un (...)

  • (fr) Plugin Mot de Passe Compliqué

    2 novembre 2007 – 16 <blink style='color:red;'>public|spip|ecrire:commentaires</blink>

    Ce plugin ajoute un testeur de complexité de mot de passes dans les formulaires de choix de mot de passe de SPIP.