filtering RSS export content

Author Message

Marko Žmak

Thursday 22 November 2007 2:18:43 am

I have setup some RSS channels on my eZP site and I would like to filter the conetnt that is exported through this channels.

Particulary I would like to display in RSS feed only those object in some folder that have some attribute set to a certain value.

For example, I have a class called "News" which has an attribute called "status". And I would like to display in RSS feed only those objects of "News" class that have "status" set to 0.

Is this possible in normal eZP installation, or do I have to make some hacks or extensions for this?

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

Knut Urdalen

Thursday 22 November 2007 4:18:59 am

I'm also interested in this flexibility in RSS export. It's not possible in eZ Publish as of 4.0beta1 and I couldn't find any contributions for it. I think this feature should be reported as an enhancement request.

Marko Žmak

Thursday 22 November 2007 4:26:54 am

Today I just got an idea how to have better control over RSS, it could be done using special pagelayout for RSS. It needs knowledge and understanding of RSS system, but I think it's not a big problem to figure that out.
I'm going to work on it and when I get some nice result I'll publish it as a contribution.

Of course, unless the eZ crew creates some other (more generic) soluution for this issue.

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

Damien Pobel

Sunday 25 November 2007 9:16:32 am

Hi,

I use a special layout for RSS (and others) exports. it works well. I wrote an article about that (in french) : http://pwet.fr/blog/des_fils_rss_sur_mesure_dans_ez_publish

Damien
Planet eZ Publish.fr : http://www.planet-ezpublish.fr
Certification : http://auth.ez.no/certification/verify/372448
Publications about eZ Publish : http://pwet.fr/tags/keywords/weblog/ez_publish

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 11:41:06
Script start
Timing: Jan 18 2025 11:41:06
Module start 'layout'
Timing: Jan 18 2025 11:41:06
Module start 'content'
Timing: Jan 18 2025 11:41:06
Module end 'content'
Timing: Jan 18 2025 11:41:06
Script end

Main resources:

Total runtime0.7740 sec
Peak memory usage4,096.0000 KB
Database Queries62

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0086 587.9141152.6250
Module start 'layout' 0.00870.0029 740.539139.4453
Module start 'content' 0.01160.7610 779.9844599.6797
Module end 'content' 0.77250.0015 1,379.664112.1641
Script end 0.7740  1,391.8281 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00380.4929160.0002
Check MTime0.00150.1957160.0001
Mysql Total
Database connection0.00100.128510.0010
Mysqli_queries0.712091.9865620.0115
Looping result0.00090.1128600.0000
Template Total0.727694.020.3638
Template load0.00210.269620.0010
Template processing0.725593.725420.3627
Template load and register function0.00010.013210.0001
states
state_id_array0.00100.123810.0010
state_identifier_array0.00210.269720.0010
Override
Cache load0.00180.2287200.0001
Sytem overhead
Fetch class attribute can translate value0.00090.119830.0003
Fetch class attribute name0.00200.255270.0003
XML
Image XML parsing0.00340.441130.0011
class_abstraction
Instantiating content class attribute0.00000.002180.0000
General
dbfile0.00290.3732300.0001
String conversion0.00000.001240.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
4content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 15
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs