RSS Export

If you made a template for printing or HTML export, you can offer it to the others here. You can also ask here for help about these templates
Post Reply
Bob69

RSS Export

Post by Bob69 »

did anyone made a script to export to an RSS Xml in order to be able to see the news using RSS Reader
stekam
Posts: 8
Joined: 2003-11-22 12:05:52

en francais

Post by stekam »

quelqu'un a fait un script d'export vers un fichier xml de type RSS?


je pense que ca peut etre interessant


merci
antoine129
Posts: 12
Joined: 2004-03-02 23:30:47
Location: Orsay (91)
Contact:

Post by antoine129 »

si il y a quelqu'un ici qui est toujours intéressé, je peux le coder vite fait...
Guest

Post by Guest »

Sorry for posting in english, i know french just for surviving :) (even english is not my mother language).

I am interested too in a script for RSS export. If anybody can do it... please do it.

Thank you.
hamlet

rss simple

Post by hamlet »

use the following template to get a simple RSS resource file that you can upload on your web server or just use locally ...

Code: Select all

<?xml version="1.0" encoding="utf-8"?>

<rdf:RDF xmlns="http://purl.org/rss/1.0/"
    xmlns:dc="http://purl.org/dc/elements/1.1/" 
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">

  <channel rdf:about="http://www.example.org/movies.rss">
    <title>movies</title>
    <description>movies</description>
    <link>http://www.example.org/movies.rss</link>
  </channel>

$$ITEM_BEGIN
  <item rdf:about="$$ITEM_URL">
    <title><![CDATA[[$$ITEM_RATING] $$ITEM_ORIGINALTITLE ($$ITEM_YEAR)]]></title>
    <description><![CDATA[$$ITEM_DESCRIPTION]]></description>
    <link>$$ITEM_URL</link>
    <dc:creator>$$ITEM_DIRECTOR</dc:creator>
  </item>
$$ITEM_END

</rdf:RDF>

rename the target file (movies.html) to movies.rss or movies.xml and put in on your web server or just open it up using your favourite feed reader. if your web browser doesn't automatically recognize the resource as RSS feed, try adding the following to your .htaccess configuration file in the directory where you put/uploaded the 'movies.rss'

Code: Select all

AddType text/xml	rss
a more sophisticated rss format would be nice, e.g. offering inline html with more infos and pictures -- when time permits i'll be back on stage.
Post Reply