Re: [pmwiki-users] Create RSS description using (:include:) ?
On Jan 15, 2008 4:47 PM, Steve Glover <[EMAIL PROTECTED]> 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: > > http://purl.org/dc/elements/1.1/";> > > UK Federation Information Centre | News / RecentChanges > http://www.ukfederation.org.uk/content/News/RecentChanges?action=rss > > News.RecentChanges > Mon, 14 Jan 2008 11:00:58 GMT > > News / 2008-01-14-Re-use-of-persistent-identifiers > > http://www.ukfederation.org.uk/content/News/2008-01-14-Re-use-of-persistent-identifiers > > (: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 > SteveGlover > 2008-01-14T11:00:58Z > Mon, 14 Jan 2008 11:00:58 GMT > > > > 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: > > http://purl.org/dc/elements/1.1/";> > > UK Federation Information Centre | News / RecentChanges > http://www.ukfederation.org.uk/content/News/RecentChanges?action=rss > > News.RecentChanges > Mon, 14 Jan 2008 11:00:58 GMT > > News / 2008-01-14-Re-use-of-persistent-identifiers > > http://www.ukfederation.org.uk/content/News/2008-01-14-Re-use-of-persistent-identifiers > > > SteveGlover > 2008-01-14T11:00:58Z > Mon, 14 Jan 2008 11:00:58 GMT > > > > > Ah (again). I've just noticed that the source above contains > "", which isn't visible directly in the browser > > 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 ___ pmwiki-users mailing list pmwiki-users@pmichaud.com http://www.pmichaud.com/mailman/listinfo/pmwiki-users
Re: [pmwiki-users] Create RSS description using (:include:) ?
On Jan 15, 2008 3:09 PM, Brent Zupp <[EMAIL PROTECTED]> wrote: > Thanks Roman! I don't know how that works, but your code appears to > pull in a snippet of content into the rss description--wonderful! A > lot better than what I had before. Thanks for sharing that. > > Elements in FeedFmt array can also be callable functions in form: function FunctionName($pagename, &$page, $tag) { return "<$tag>some output"; In my example page content (wiki markup) is converted to HTML and then surrounded by according to RSS requirements. ___ pmwiki-users mailing list pmwiki-users@pmichaud.com http://www.pmichaud.com/mailman/listinfo/pmwiki-users
Re: [pmwiki-users] Create RSS description using (:include:) ?
Thanks Roman! I don't know how that works, but your code appears to pull in a snippet of content into the rss description--wonderful! A lot better than what I had before. Thanks for sharing that. Best, Brent On Jan 15, 2008 4:00 AM, Roman <[EMAIL PROTECTED]> wrote: > Here is a snippet from my config: > > $FeedFmt['rss']['item']['description'] = 'FeedText'; > > function FeedText($pagename, &$page, $tag) { > $p = ReadPage($pagename); > $content = MarkupToHTML($pagename, $p['text']); > return "<$tag>"; > } > > Roman > > > > On Jan 12, 2008 6:53 PM, Brent Zupp <[EMAIL PROTECTED] > wrote: > > > > > > > > I'd like to include the text between [[#start]] and [[#end]] anchor > > links I have on my pages for each item in my RSS feed. > > > > I poked around the documentaion and found: > > > > $FeedFmt['rss']['item']['description'] = '$LastModifiedSummary'; > > > > Can I substitute some form of the (:include:) directive for > > $LastModifiedSummary ? > > > > I did some experiments and I couldn't get it to work. > > > > Best, > > -- > > Brent Zupp > > http://www.wanderings.net/ > > > > There is a very fine line between "hobby" and "mental illness." > > ~ Dave Barry > > > > ___ > > pmwiki-users mailing list > > pmwiki-users@pmichaud.com > > http://www.pmichaud.com/mailman/listinfo/pmwiki-users > > > > > ___ > pmwiki-users mailing list > pmwiki-users@pmichaud.com > http://www.pmichaud.com/mailman/listinfo/pmwiki-users > > -- Brent Zupp http://www.wanderings.net/ There is a very fine line between "hobby" and "mental illness." ~ Dave Barry ___ pmwiki-users mailing list pmwiki-users@pmichaud.com http://www.pmichaud.com/mailman/listinfo/pmwiki-users
Re: [pmwiki-users] Create RSS description using (:include:) ?
I have just tried it on clean installation and verified with RecentChanges RSS feed and it works as it should (description filled with page content). What was your configuration before, when description contained PmWiki markup? Roman On Jan 15, 2008 1:10 PM, Steve Glover <[EMAIL PROTECTED]> wrote: > On Tue, 2008-01-15 at 13:00 +0100, Roman wrote: > > Here is a snippet from my config: > > > > $FeedFmt['rss']['item']['description'] = 'FeedText'; > > > > function FeedText($pagename, &$page, $tag) { > > $p = ReadPage($pagename); > > $content = MarkupToHTML($pagename, $p['text']); > > return "<$tag>"; > > } > > I'm trying to get rid of PmWiki markup appearing in the RSS feed from my > News.RecentChanges page, but when I use the above (I assume it's meant > to be in my local/config.php), I just get empty tags in > the feed - which at least eliminates users' complaints about the "odd" > mark-up, but doesn't quite do what I'd like it to. > > Has anyone else had this problem, please? > > Thanks > > Steve > > > -- > Steve Glover at email: [EMAIL PROTECTED] > SDSS, EDINA, University of Edinburgh, tel: +44 (0)131-650 2908 > Causewayside House, 160 Causewayside, fax: +44 (0)131-650 3308 > Edinburgh EH9 1PR mobile: +44 (0) 7961 446 902 > > ___ pmwiki-users mailing list pmwiki-users@pmichaud.com http://www.pmichaud.com/mailman/listinfo/pmwiki-users
Re: [pmwiki-users] Create RSS description using (:include:) ?
On Tue, 2008-01-15 at 13:00 +0100, Roman wrote: > Here is a snippet from my config: > > $FeedFmt['rss']['item']['description'] = 'FeedText'; > > function FeedText($pagename, &$page, $tag) { > $p = ReadPage($pagename); > $content = MarkupToHTML($pagename, $p['text']); > return "<$tag>"; > } I'm trying to get rid of PmWiki markup appearing in the RSS feed from my News.RecentChanges page, but when I use the above (I assume it's meant to be in my local/config.php), I just get empty tags in the feed - which at least eliminates users' complaints about the "odd" mark-up, but doesn't quite do what I'd like it to. Has anyone else had this problem, please? Thanks Steve -- Steve Glover at email: [EMAIL PROTECTED] SDSS, EDINA, University of Edinburgh, tel: +44 (0)131-650 2908 Causewayside House, 160 Causewayside, fax: +44 (0)131-650 3308 Edinburgh EH9 1PR mobile: +44 (0) 7961 446 902 ___ pmwiki-users mailing list pmwiki-users@pmichaud.com http://www.pmichaud.com/mailman/listinfo/pmwiki-users
Re: [pmwiki-users] Create RSS description using (:include:) ?
Here is a snippet from my config: $FeedFmt['rss']['item']['description'] = 'FeedText'; function FeedText($pagename, &$page, $tag) { $p = ReadPage($pagename); $content = MarkupToHTML($pagename, $p['text']); return "<$tag>"; } Roman On Jan 12, 2008 6:53 PM, Brent Zupp <[EMAIL PROTECTED]> wrote: > I'd like to include the text between [[#start]] and [[#end]] anchor > links I have on my pages for each item in my RSS feed. > > I poked around the documentaion and found: > > $FeedFmt['rss']['item']['description'] = '$LastModifiedSummary'; > > Can I substitute some form of the (:include:) directive for > $LastModifiedSummary ? > > I did some experiments and I couldn't get it to work. > > Best, > -- > Brent Zupp > http://www.wanderings.net/ > > There is a very fine line between "hobby" and "mental illness." > ~ Dave Barry > > ___ > pmwiki-users mailing list > pmwiki-users@pmichaud.com > http://www.pmichaud.com/mailman/listinfo/pmwiki-users > ___ pmwiki-users mailing list pmwiki-users@pmichaud.com http://www.pmichaud.com/mailman/listinfo/pmwiki-users
Re: [pmwiki-users] Create RSS description using (:include:) ?
Thanks, Patrick! I'll have a look at that approach. Best, Brent On Jan 12, 2008 7:39 PM, Patrick R. Michaud <[EMAIL PROTECTED]> wrote: > On Sat, Jan 12, 2008 at 09:53:52AM -0800, Brent Zupp wrote: > > I'd like to include the text between [[#start]] and [[#end]] anchor > > links I have on my pages for each item in my RSS feed. > > > > I poked around the documentaion and found: > > > > $FeedFmt['rss']['item']['description'] = '$LastModifiedSummary'; > > > > Can I substitute some form of the (:include:) directive for > > $LastModifiedSummary ? > > > > I did some experiments and I couldn't get it to work. > > RSS doesn't normally process wiki markup in its output, > so things like (:include:) don't work. There is a way to > get $FeedFmt entries to call a PHP function, though, > so one could write a PHP function that does the same > as the (:include:) (or even processes markup). > > Pm > -- Brent Zupp http://www.wanderings.net/ There is a very fine line between "hobby" and "mental illness." ~ Dave Barry ___ pmwiki-users mailing list pmwiki-users@pmichaud.com http://www.pmichaud.com/mailman/listinfo/pmwiki-users
Re: [pmwiki-users] Create RSS description using (:include:) ?
On Sat, Jan 12, 2008 at 09:53:52AM -0800, Brent Zupp wrote: > I'd like to include the text between [[#start]] and [[#end]] anchor > links I have on my pages for each item in my RSS feed. > > I poked around the documentaion and found: > > $FeedFmt['rss']['item']['description'] = '$LastModifiedSummary'; > > Can I substitute some form of the (:include:) directive for > $LastModifiedSummary ? > > I did some experiments and I couldn't get it to work. RSS doesn't normally process wiki markup in its output, so things like (:include:) don't work. There is a way to get $FeedFmt entries to call a PHP function, though, so one could write a PHP function that does the same as the (:include:) (or even processes markup). Pm ___ pmwiki-users mailing list pmwiki-users@pmichaud.com http://www.pmichaud.com/mailman/listinfo/pmwiki-users