Displaying the most recent articles per section from your editors

By default, SPIP proposes an author’s page which enables you to reveal the list of authors/editors who participate to your site, as well as their most recent contributions.

But a problem might arise if you have numerous contributing editors who actively participate on a frequent basis on your site. This would result in an over-extended page of articles.

However, there is a method of listing the most recent contributions of your authors/editors and to do so for each of them in turn.

How do we proceed?

First off, we’ll create a file:


Creating the myauthor.html file

Within the file, insert the following code:

-  Just after the <body> tag, insert

-  Just before the </body> tag, insert

-  In the HTML body of the page, we present below two code segments that you can insert within those HTML body tags (We can not directly specify a section, since generally speaking an author is not associated with just one section, but only to the articles that he/she has written, so the code may seem a little tortured but it does allow us to find out the section relevant to the article(s)):

Code for the most recent article

Code for an article chosen at random

And finally

Now you need to configure your authors page (the one that lists all of your various authors) so that when you click on the author link, you will be directed to the myauthor page which lists the most recent articles written by that particular author.

The link should be coded as shown below:

<a href="#URL_PAGE{myauthor, id_auteur=#ID_AUTEUR}">name of the link</a>

Author Mark Published : Updated : 26/10/12

Translations : català, English, Español, français, italiano, Nederlands