Thursday 14 June 2007 3:35:48 pm
This could be tricky problem (generally, not only in this situation). I'm not sure that it is possible with eZ.
Here it is:
There is a weblog class (similar to original that comes with install or package) with <i>message</i> attribute (XML text). For now, there is no <i>summary</i>-like attribute.
When displaying on site, i use operator e.g. $node.data_map.message.data_text.shorten(500)
Now occured need for RSS feed and it is not apropriate to use whole content of message for RSS description-tag.
Built-in RSS module, likewise Syndicate RSS extension (by Pascal von Büren) don't support functionality to use attribute <i>modified</i> for description-tag. Or, to dynamically create new attribute based on existing attribute of the class.
For a moment I thought it is supported:
(<quote> from description of Syndication RSS "*In the description of an RSS-Item, you can now combine multiple attributes from a content class"), but this is not what i want.
Well, I could create new attribute 'summary' for future use, but here is two issues about that:
1) In general, it is more consistent to have fixed length of summary. When entered manually, these have tendency to have rather different length, depending on editor's will. 2) (this is only time consuming) If i create new attribute for existing class, already published articles need to be re-published with entered summary element/attribute. So, any ideas?
|