April 17, 2007
Currently, you can only have two automatic feeds per folder, RSS and Atom. Some other systems support RSS 0.92 and RSS 1.0; I've decided to concentrate on the more modern (and simpler) feed formats. It is possible to create additional feeds by setting up your own parallel linked folder structure, but I'm not sure that there's a lot of requirement for that.
<?xml version="1.0"?>
<rss version="2.0">
<channel>
<title>[site.name]</title>
<link>http://[site.host]/</link>
<description>[site.tagline]</description>
<language>en-us</language>
<lastBuildDate>[posts count=1][post.pdate format="%a, %d %b %Y %X"] +0000[/posts]</lastBuildDate>
<generator>Minx 0.9</generator>
<ttl>60</ttl>
[posts count=15]
<item>
<title>[post.title.esc]</title>
<link>http://[site.host]/[if folder.path][folder.path]/[/if][post.path]</link>
[iff post.category]<category>[post.category]</category>[/iff]
<description>[post.text.text format="first=100"]...</description>
<guid>http://[site.host]/[if folder.path][folder.path]/[/if][post.path]</guid>
<pubDate>[post.pdate format="%a, %d %b %Y %X"] +0000</pubDate>
</item>
[/posts]
</channel>
</rss>
Posted by: Pixy Misa at
05:04 AM
| Comments (10)
| Add Comment
Post contains 131 words, total size 2 kb.
Posted by: McGurk at April 19, 2007 02:15 AM (8GzzQ)
Posted by: McGurk at April 19, 2007 02:54 AM (8GzzQ)
Posted by: Pixy Misa at April 19, 2007 04:02 AM (PiXy!)
Posted by: McGurk at April 19, 2007 03:44 PM (Ri74D)
Posted by: Pixy Misa at April 19, 2007 03:56 PM (PiXy!)
Posted by: McGurk at April 24, 2007 05:52 PM (Ri74D)
Even this template is doing it.
"
Reference to undefined entity 'nbsp'.
Line: 18 Character: 220
<description>("<P>Just read an article over at The Old New Thing about the Decoy Effect. Very interesting. By adding a third choice, you can skew opinion towards one of two legitimate choices. </P>\r\n<P>You are asked to choose between A and B. 50% of people pick A, 50% pick B. If you want to push people towards A, you can easily do this by adding a third choice C that is not as good as A or B. Just make sure that choice A is better than C in more respects than B is. People use choice C as the benchmark; they see that A is twice as better than C than B and therefore pick A more often. </P>\r\n<P>Keep an eye out for this kind of gaming in real life. If I find any I'll post 'em here.</P>", 'strip_markup')...</description>"
Posted by: McGurk at April 24, 2007 05:54 PM (Ri74D)
field.text gives you the text with any HTML or BBCode markup stripped out.
field.esc gives you the field with markup escaped (and BBCode converted to HTML, and then escaped), which should be safe for inclusion in a feed.
Posted by: Pixy Misa at April 24, 2007 06:13 PM (PiXy!)
Posted by: Pixy Misa at April 24, 2007 06:15 PM (PiXy!)
I've patched that, and I'll do a little testing now. I'm surprised more things didn't break... Though if they had, I would have found the problem straight away.
My RSS wasn't working at all. I wondered why I wasn't getting any comments...
Posted by: Pixy Misa at April 25, 2007 05:29 AM (PiXy!)
31 queries taking 0.0179 seconds, 62 records returned.
Powered by Minx 1.1.6c-pink.