Add 'guid' in RSS feed
[platal.git] / templates / rss.tpl
index cef5698..7bb9bef 100644 (file)
@@ -1,6 +1,6 @@
 {**************************************************************************}
 {*                                                                        *}
-{*  Copyright (C) 2003-2004 Polytechnique.org                             *}
+{*  Copyright (C) 2003-2006 Polytechnique.org                             *}
 {*  http://opensource.polytechnique.org/                                  *}
 {*                                                                        *}
 {*  This program is free software; you can redistribute it and/or modify  *}
 {**************************************************************************}
 
 <?xml version="1.0"?>
-{***************************************************************************
- *  Copyright (C) 2003-2004 Polytechnique.org                              *
- *  http://opensource.polytechnique.org/                                   *
- *                                                                         *
- *  This program is free software; you can redistribute it and/or modify   *
- *  it under the terms of the GNU General Public License as published by   *
- *  the Free Software Foundation; either version 2 of the License, or      *
- *  (at your option) any later version.                                    *
- *                                                                         *
- *  This program is distributed in the hope that it will be useful,        *
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of         *
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the          *
- *  GNU General Public License for more details.                           *
- *                                                                         *
- *  You should have received a copy of the GNU General Public License      *
- *  along with this program; if not, write to the Free Software            *
- *  Foundation, Inc.,                                                      *
- *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                *
- ***************************************************************************}
 <rss version="2.0">
   <channel>
-    <title>Polytechnique.org :: News</title>
+    <title>{#globals.core.sitename#} :: News</title>
     <language>fr</language>
     <link>{#globals.baseurl#}/</link>
     <description>L'actualite polytechnicienne...</description>
     <image>
-      <title>Polytechnique.org</title>
+      <title>{#globals.core.sitename#}</title>
       <url>{#globals.baseurl#}/images/logo.png</url>
       <link>{#globals.baseurl#}/</link>
     </image>
     {iterate item=line from=$rss}
     <item>
       <title>{$line.titre|strip_tags}</title>
-      <link>{#globals.baseurl#}/login.php#newsid{$line.id}</link>
+      <guid isPermaLink="false">{$line.id}</guid>
+      <link>{#globals.baseurl#}/events#newsid{$line.id}</link>
       <description><![CDATA[{$line.texte|nl2br}]]></description>
+      <author>{$line.prenom} {$line.nom} (X{$line.promo})</author>
       <pubDate>{$line.creation_date|rss_date}</pubDate>
     </item>
     {/iterate}