Quite a subject, isn't it?
I've seen in the English documentation how to sort by date in a
rubrique, or how to have one article first by starting its title with
a space but, as far as I understand, this wouldn't work for what I
need, ie:
how do I make the _home_ page with:
a constant part first (Hello, this my home page, you will find this
and that in this place, contact me at...), followed by
a dynamic list of the N newest articles in the whole site, ie from
*all* sections?
TIA,
Marco
Hello, this my home page, you will find this
and that in this place:
<BOUCLE_art(ARTICLES){par date}{inverse}{0, 20}>
#TITRE
</BOUCLE_art>
... should do what you want. The tip is NOT to specify
id_rubrique or id_article. Pretty simple. Thank you SPIP! :+)
BTW, you can also check the thread "How to produce a newsletter".
There was a discussion about this topic there lately...
Cheers
./Maciek
On Thu, 3 Jun 2004 21:57:00 +0200, M. Fioretti <mfioretti@mclink.it> wrote:
Quite a subject, isn't it?
I've seen in the English documentation how to sort by date in a
rubrique, or how to have one article first by starting its title with
a space but, as far as I understand, this wouldn't work for what I
need, ie:
how do I make the _home_ page with:
a constant part first (Hello, this my home page, you will find this
and that in this place, contact me at...), followed by
a dynamic list of the N newest articles in the whole site, ie from
*all* sections?
TIA,
Marco
_______________________________________________
spip-en@rezo.net - http://listes.rezo.net/mailman/listinfo/spip-en
--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
On Thu, Jun 03, 2004 22:00:18 PM +0200, Maciek Borowka
(maciek@borowka.net) wrote:
Hello, this my home page, you will find this
and that in this place:
<BOUCLE_art(ARTICLES){par date}{inverse}{0, 20}>
#TITRE
</BOUCLE_art>
... should do what you want. The tip is NOT to specify
id_rubrique or id_article. Pretty simple. Thank you SPIP! :+)
Sorry, doesn't this answer only the second question? If not, why?
In otherwords, does the above, besides the dynamic kist, also give
>a constant part first (Hello, this my home page, you will find this
>and that in this place, contact me at...), followed by
thank you in advance, after this (and solving the "chmod 777" doubt in
my other thread, thank you") I can really start going online with
spip!
Ciao,
Marco
M. Fioretti wrote:
how do I make the _home_ page with:
a constant part first (Hello, this my home page, you will find this
and that in this place, contact me at...), followed by
a dynamic list of the N newest articles in the whole site, ie from
*all* sections?
Heya,
first: most ways to do work on any page, so you dont get a solution just for your homepage.
then if you dont want to have your welcome text in Spip theres no problem, you just put it in your sommaire html 
now what i do usually is to have one section in Spip that contains stuff like that (mostly i name it "Stuff" ;). There i have a subsection "welcome texts" and there is at least one article with such a text. So you can select that and display it on your sommaire page. (e.g. if the welcome texts rubriques id is 5)
<BOUCLE_welcometext(ARTICLES) {id_rubrique=5} {par date} {inverse} {0,1}>
#TITRE
#TEXTE
</BOUCLE_welcometext>
So now when you do a list of all articles of the site you then get the welcome text too. So you have to exclude the stuff section in your Loop. (e.g. if it is section 10 the loop would be)
<BOUCLE_showall(ARTICLES) {id_section!=10} {par date} {inverse}>
#TITRE
</BOUCLE_showall>
If you dont like to specify what to show in the Loop you could make a Keyword in Spip and use that to select what to show. Like a keyword "Dont Show On Homepage" that you use on rubriques like that welcome texts rubrique. (e.g. when the mot id is 7)
<BOUCLE_showall(ARTICLES) {par date} {inverse}>
<BOUCLE_sectionselect(RUBRIQUES) {id_rubrique}{id_mot=7}>
</BOUCLE_sectionselect>
</B_sectionselect>
#TITRE
<//B_sectionselect>
</BOUCLE_showall>
(for understanding: since the #TITRE here is not really in what the Rubriques Loop displays (which is nothing here) it is the title of the the article not of the rubrique)
Hope that is of any help
Chris