RSS Feed Technorati Profil Share Share

Nun auch als ATOM · 04.04.2009 14:06

BloodyWing

Ich habe mal fix den Feed hier als Atom Feed umgecoded, den RSS Feed gibt es natürlich immer noch. Welches Format man nun nimmt ist einem selbst überlassen.

Sektionscode:

<txp:mg_setheader name="Content-Type" value="application/atom+xml" 
/><?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <title>Bloodys Blog</title>
  <link href="http://neocomy.net/"/>
  <updated><txp:php>setlocale(LC_TIME, "C");
echo strftime("%Y-%m-%dT%H:%M:%SZ");</txp:php></updated>
  <author>
    <name>Pierre Geier</name>
  </author>
  <id>http://neocomy.net/</id>
  <link rel="self" href="http://neocomy.net/atom_bloodys_blog" />

<txp:article_custom allowoverride="0" author="bloodywing" 
form="atom_bloodys_blog" pgonly="0" section="article" sort="Posted desc" 
status="4" limit="10" />

</feed>

und der im Bauststein “atom_bloodys_blog”

<entry>
    <title><txp:title /></title>
    <link href="<txp:permlink />" />
    <id><txp:permlink /></id>
    <updated><txp:posted format="%Y-%m-%dT%H:%M:%SZ" />
</updated>
    <content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<txp:body /></div></content>
</entry>

Ich erstelle die so weil mir die von Textpattern nicht so gefallen, dadurch habe ich mehr Freiheit. Gerade wenn ich ein paar Optionale Elemente hinzufügen will.

Tags: , , , ,
Kategorie:

— BloodyWing

---

Kommentare

Textile-Hilfe
(Vorschau muss ein mal geklickt werden)

|

 
cormorants