RSS export : how-to configure the attributes output

Author Message

Sébastien Antoniotti

Wednesday 20 December 2006 2:05:10 am

Hi everybody !

I'm setting up a rss export using the admin interface, all is ok, but I want to limit the <description> field to display n characters.

Did someone know how to do this ?

thanks in advance

eZ Publish Freelance
web : http://www.webaxis.fr

Betsy Gamrat

Saturday 23 December 2006 8:58:09 pm

Add a parameter to attribute_view_gui and use shorten.

attribute_view_gui templaters are content/view/datatype/<i>exampletype.tpl</i>

<i>shorten</i> allows you to limit the length of a string

Sébastien Antoniotti

Tuesday 26 December 2006 12:17:19 am

Hi,

Thanks a lot for your help, but I don't understand how to do this.

Moreover, I don't have any content/view/datatype/exampletype.tpl in base or standard design, and any "homemade" template to display this rss because I'have done all the configuration with the administration interface.

Thanks again.

eZ Publish Freelance
web : http://www.webaxis.fr

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 19 2025 01:15:34
Script start
Timing: Jan 19 2025 01:15:34
Module start 'layout'
Timing: Jan 19 2025 01:15:34
Module start 'content'
Timing: Jan 19 2025 01:15:35
Module end 'content'
Timing: Jan 19 2025 01:15:35
Script end

Main resources:

Total runtime0.7686 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0068 589.3047152.6406
Module start 'layout' 0.00680.0024 741.945339.4766
Module start 'content' 0.00910.7579 781.4219538.0078
Module end 'content' 0.76700.0015 1,319.429712.1250
Script end 0.7685  1,331.5547 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.4179160.0002
Check MTime0.00130.1717160.0001
Mysql Total
Database connection0.00090.118510.0009
Mysqli_queries0.713992.8915570.0125
Looping result0.00060.0761550.0000
Template Total0.735795.720.3678
Template load0.00210.273720.0011
Template processing0.733595.443620.3668
Template load and register function0.00010.014310.0001
states
state_id_array0.00090.116510.0009
state_identifier_array0.00180.238520.0009
Override
Cache load0.00170.2261190.0001
Sytem overhead
Fetch class attribute can translate value0.00080.107020.0004
Fetch class attribute name0.00140.186550.0003
XML
Image XML parsing0.00120.150220.0006
class_abstraction
Instantiating content class attribute0.00000.001460.0000
General
dbfile0.00120.1506220.0001
String conversion0.00000.001140.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
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 11
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs