[pmwiki-users] Create RSS description using (:include:) ?

Roman romat2 at gmail.com
Tue Jan 15 10:28:00 CST 2008


On Jan 15, 2008 4:47 PM, Steve Glover <steve at fell-services.net> wrote:

> When I don't have your snippet in my config.php, the following URL:
>
>
> http://www.ukfederation.org.uk/content/News/RecentChanges?action=rss&group=News&name=2*&order=-name&count=1
>
> gives me:
>
> <rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
> <channel>
> <title>UK Federation Information Centre | News / RecentChanges</title>
> <link>http://www.ukfederation.org.uk/content/News/RecentChanges?action=rss
> </link>
> <description>News.RecentChanges</description>
> <lastBuildDate>Mon, 14 Jan 2008 11:00:58 GMT</lastBuildDate>
> <item>
> <title>News / 2008-01-14-Re-use-of-persistent-identifiers</title>
> <link>
> http://www.ukfederation.org.uk/content/News/2008-01-14-Re-use-of-persistent-identifiers
> </link>
> <description>(:if false:)
> Title: Re-use of Persistent Identifiers
> More: read more...
>
> [[#entrybody]]
> The UK Access Management Federation for Education and Research ('the
> federation') provides a mechanism for Service Providers to manage the
> risk of unauthorised disclosure of their content and of any information
> which they store about their users.
>
> [[#extendedbody]]
> The federation's "user accountability" provisions (to which the majority
> of identity providers already subscribe) require every conforming
> Identity Provider </description>
> <dc:contributor>SteveGlover</dc:contributor>
> <dc:date>2008-01-14T11:00:58Z</dc:date>
> <pubDate>Mon, 14 Jan 2008 11:00:58 GMT</pubDate>
> </item>
> </channel>
> </rss>
>

It looks that some recipe changes default feeds behaviour because by
default, feed item description is filled by page description, not by page
markup. Try to comment out some recipes and compare results.


>
> With your snippet, the same URL give me:
>
> <rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
> <channel>
> <title>UK Federation Information Centre | News / RecentChanges</title>
> <link>http://www.ukfederation.org.uk/content/News/RecentChanges?action=rss
> </link>
> <description>News.RecentChanges</description>
> <lastBuildDate>Mon, 14 Jan 2008 11:00:58 GMT</lastBuildDate>
> <item>
> <title>News / 2008-01-14-Re-use-of-persistent-identifiers</title>
> <link>
> http://www.ukfederation.org.uk/content/News/2008-01-14-Re-use-of-persistent-identifiers
> </link>
>
> <description><![CDATA[]]></description><dc:contributor>SteveGlover</dc:contributor>
> <dc:date>2008-01-14T11:00:58Z</dc:date>
> <pubDate>Mon, 14 Jan 2008 11:00:58 GMT</pubDate>
> </item>
> </channel>
> </rss>
>
> Ah (again). I've just noticed that the source above contains
> "<![CDATA[]]>", which isn't visible directly in the browser....
>
>
<![CDATA[]]> is correct, it says that text inside CDATA will be ignored (not
parsed by XML parser), but rendered by browsers that support RSS (FF 2, IE
7). But in your case there is nothing inside, so you don't see anything. I
don't use most of your cookbook recipes, so you have to try it yourself.

Roman
-------------- next part --------------
An HTML attachment was scrubbed...
URL: /pipermail/pmwiki-users/attachments/20080115/70e9fc8a/attachment-0001.html 


More information about the pmwiki-users mailing list