SPIP - Contrib

[ar] [en] [es] [fr] [it]



Home page > Admin and maintenance solutions

A template to show “editing in progress” articles

Wednesday 15 June 2005, by paolo. Latest addition Thursday 25 January 2007


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.

Attached documents

  • Document (Zip - 956 bytes)

    Zip file containing a SPIP template

Footnotes

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

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


Reply to this article



Follow-up of the site's activity RSS 2.0 | Site Map | Private area | Charte et vie SPIP-Contrib | SPIP | L'autre.net