SPIP-Contrib

SPIP-Contrib

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

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

Homepage > Admin and maintenance solutions > A template to show “editing in progress” articles

A template to show “editing in progress” articles

15 June 2005 – by paolo

There is no way in SPIP’s private area to list all the articles on a site whose status is “editing in progress”. This template does it.

The problem

On a fairly large site with many authors and translators, “editing in progress” articles can begin to accumulate. The administrators can wonder whether they are mistakes, or if they have been forgotten (or lost!) by their authors, — or if they are indeed being worked on.

Now in SPIP’s private area you can see your own [1] “editing in progress articles”, but not those of other authors. There is, it is true, the page articles_tous.php3 [2], which (if you are an administrator) offers the option of viewing “editing in progress” articles. However there is a catch: the list displayed shows only original articles. If the articles in question are “translations” they will not be shown.

A solution

The stand-alone template contained in the zip file below does two things:

  • checks if the visitor is logged in to the private area of the site. If not, it asks them to log in.
  • displays a list of articles with the status “editing in progress” as a series of links. It also shows the article language and date when work on the article began.

Here’s a screenshot:

To use the template, simply place the two files prep.php3 and prep.html in the root directory of your site and call it directly from your browser, thus: http://mysite.net/prep.php3

P.S.

Note: There are other ways of solving this problem. See, for example, this article and this newsgroup thread.

With the change made to the criterion (statut) in the CVS version on 19/05/2005 (see this message) it should now be possible to display these articles using ordinary Spip loops.

Footnotes

[1i.e. those of which you are the author

[2Access through the leftmost button on the SPIP (1.8) toolbar: “The entire site”

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) 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.

  • (fr) Navigation AJAX

    31 janvier – 18 <blink style='color:red;'>public|spip|ecrire:commentaires</blink>

    Ce plugin permet de modifier automatiquement une parties des liens internes de manière à ce qu’ils ne déclenchent pas un chargement complet de la page cible, mais un chargement en AJAX de certains éléments spécifiés à l’avance. Il permet aussi de (...)