Share » Forums » Setup & design » Automatic summary of full content...

Automatic summary of full content (for purpose of RSS feed)

Automatic summary of full content (for purpose of RSS feed)

Thursday 14 June 2007 3:35:48 pm - 3 replies

Author Message

Xavier Dutoit

Thursday 14 June 2007 11:46:58 pm

Hi,

Not sure it answers your question, but don't use the shorten operator on a xml text, you are sooner or later going to cut it between the opening one and the closing one and that's going to mess your layout.

Use this operator instead:
http://projects.ez.no/xmlwash

http://www.sydesy.com

Neven Susa

Friday 15 June 2007 2:57:00 am

Thank you Xavier for xmlwash().
I didn't experienced any problems so far with shorten operator, but i'll try your solution.

Anyway, this is not issue here.
I know that RSS readers have option to shorten description e.g. at wanted number of lines or characters, but not all of them and not in default settings.

eZ RSS module doesn't have option to <i>manipulate</i> class attributes for RSS export. Only whole or combined (in extension) attributes can be exported to rss 'description field'.
I don't have appropriate field to export because 'summary' attribute is missing.

First solution is to create it now, and re-publish all blogs with summary entered. This would be dirty solution.

A nicer one is if I could manage to dynamically create this shortened content for export to feed.
Also it is more consistent because of (Xavier Dutoit quote):
"Unfortunately, there isn't a simple way to limit the length of that introduction, and some authors have a rather extensive interpretation of it (bless them, some put the complete article into the introduction)" - interesting observation, last one :)

Someone know how to solve this? Thanks.

Damien Pobel

Friday 15 June 2007 3:09:38 am

Hi Newen,

you can perhaps use the layout system to build your own RSS export with templates, that's more flexible and you can do almost everything with (custom) operators.
I wrote an article (in french) on this topic : http://pwet.fr/blog/des_fils_rss_sur_mesure_dans_ez_publish

Cheers

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

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu