#009933: Provide RSS fetch functions

Description:

When fetch functions for the RSS module are provided, we can insert link tags for RSS auto-discovery in the page layout.


{def $rssList=fetch('rss','list')}
{foreach $rssList as $rss}
<link rel="alternate" type="application/rss+xml" title="{$rss.title|wash}" href={concat("/rss/feed/",$rss.access_url)|ezurl} />
{/foreach}
{undef $rssList}

Environment:

Operating System:
PHP Version: (please be specific, like '4.4.3' or '5.1.5')
Database and version:
Browser (and version):


- Attachments
rss.tar.gz (436 b)
[Download] [Permanent Link]
function_definition.php file and function collection class for the RSS module

- Comments

Now including a new fetch function rss/subtree_list (made for eZ Projects quite some time ago). Example usage:


{def $rssList=fetch('rss','subtree_list',hash('node_id',$module_result.node_id, 'max_depth', $max_depth))}
{foreach $rssList as $rss}
<link rel="alternate" type="application/rss+xml" title="{$rss.title|wash}" href={concat("/rss/feed/",$rss.access_url)|ezurl} />
{/foreach}
{undef $rssList}
#257588 by Kristof Coomans on July 24th, 2008 [Permanent Link]
- Attachments: » rss.tar.gz

+1

#268825 by Gaetano Giunta on January 26th, 2011 [Permanent Link]

- History
Properties
Type Enhancement
Priority Medium
Component Misc
Affects 3.8.6
3.9.0
Fix Version -
Reporter Kristof Coomans
Responsible -
Status 0 New
Resolution UNRESOLVED
Created January 4th, 2007
Updated January 26th, 2011
Resolved -
 
Navigation [Permanent Link]
Previous Issue
Back to Issues List
Next Issue: #019127
  DB Deadlocks on ezcontentobject_tree when updating subnode