SPIP ecureuil




Thème de ce forum :

how to GENERATE an XML file



geiko
how to GENERATE an XML file
26 avril 2007 11:10

hi,

I hope somebody can explain me how I can generate an XML file with SPIP, so my FLASH can read it.

I’m searching for an answer since two weeks, I even searched the french forums as I speak a little bit french. I’m not a programmer (I write acsionscript only), but a designer. I’m using SPIP almost a year, I even translated it in bosnian, but I still have some beginner problems, conserned the programming, like this one. I guess it is sipmle if you know how to.

any help is very welcome, or maybe a link to a good tutorial that I couldn’t find ? I found websites like lapermission or kabardock, but that doesn’t help me, or explain me how to make the XML file with SPIP

thanks in advance, geiko

Rechercher dans les forums:
 

Committo Ergo Sum
26 avril 2007 17:46
how to GENERATE an XML file

I don’t understand what you want to generate. If you want the whole database, just use the "save" feature, the result is in XML format. Is that your need ?

geiko
26 avril 2007 19:01
how to GENERATE an XML file

you mean to save it as dump.xml ? is that the document from which I can take the data to call it with actionscript ? I need to call only the titles of 3 newest articles in flash, that’s all. could I somehow create an XML file only from sommaire.html ? is this possible through code ?

well, I’m giving the site to my client (now it’s local on my computer) so I would like the site to be functional without him having to save the whole database every time he writes a new article.

thank’s for answering

Committo Ergo Sum
26 avril 2007 21:43
how to GENERATE an XML file

What kind of XML do you want ? It seems to me that you want a RSS stream of the latest articles, right ? If so, you should consider the syndication mechanism.

27 avril 2007 18:02
how to GENERATE an XML file

yes, I think you just pointed me in the right direction. I tried to type http://localhost:8888/calocal/spip.php?action=rss in the adress bar, and it showed me the xml. can I find an rss or xml file in some folder ? but, anyway, those are some additional questions, I shall find my way out now :) thank you very much for help !

david
10 novembre 2007 02:16
how to GENERATE an XML file

thanks for this useful informations الدليل العربى العاب

erojero
7 octobre 2008 08:33
how to GENERATE an XML file

hey geiko, have you ever solved this ?. I have the same goal.

Rainer
7 octobre 2008 09:27
how to GENERATE an XML file

Hi

The Rss flux is created by the files backend.html which includes the inc-rss-item.html, to be found in the dist folder. If you want to make changes to the content of the rss feed, then save the inc-rss-item.html in your squelletes folder and change it.

To poduce the rss flux : use http://yoursite/spip.php?page=backend this gives the news of all the site. You can use keywords, id rubrique, id-auteur, lang to filter the content.

ie : http://www.corporatejustice.org/spi... will give the rss feed of section 1

http://www.corporatejustice.org/spi... will produce all the articles with the keyword that has the id 21 attached to it

and http://www.corporatejustice.org/spi...

will produce the latest articles in English.

by default it produces always the last ten articles. If you want to change that. Take the backend.html to your squellettes folder and change {0,10} replacing the 10 with the amount you want.

Hope this helps

Rainer

RSS






squelette