Rss import custom fields

Author Message

Michaël Todorovic

Thursday 26 March 2009 5:33:34 am

Hello,
I set up rss import and it works. In the rss, there is a field like

<category domain="http://www.google.com">website</category>

I can catch "website" by selecting "Item - Category" in rss import parameters. I would like to catch "http://www.google.com" which is in domain attribute.

How can I do this ? I search on ez.no and google for hours but I didn't find anything.

Thank you for your help.

Michaël Todorovic

Thursday 26 March 2009 7:54:21 am

well, I found a solution. I just need to put

'category_url' => array('attributes' => array('domain')),

in rssFieldDefinition array.

Now I would like to get dc:date

<dc:date>2009-03-26T00:39:29Z</dc:date>

. I put 'dc:date' in rssFieldDefinition array but I don't get the content of dc:date. I think the problem is the semi-colon. Is that true ? Can it be solved ?

Thank you.

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:49
Script start
Timing: Jan 18 2025 11:41:49
Module start 'layout'
Timing: Jan 18 2025 11:41:49
Module start 'content'
Timing: Jan 18 2025 11:41:50
Module end 'content'
Timing: Jan 18 2025 11:41:50
Script end

Main resources:

Total runtime0.7255 sec
Peak memory usage4,096.0000 KB
Database Queries52

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0062 587.9141152.6250
Module start 'layout' 0.00620.0022 740.539139.4453
Module start 'content' 0.00840.7158 779.9844426.7500
Module end 'content' 0.72430.0012 1,206.73448.1641
Script end 0.7254  1,214.8984 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.4327160.0002
Check MTime0.00120.1644160.0001
Mysql Total
Database connection0.00090.119510.0009
Mysqli_queries0.682494.0643520.0131
Looping result0.00040.0550500.0000
Template Total0.697796.220.3489
Template load0.00190.262520.0010
Template processing0.695895.910620.3479
Template load and register function0.00020.025510.0002
states
state_id_array0.00080.108110.0008
state_identifier_array0.00100.132920.0005
Override
Cache load0.00160.2208170.0001
Sytem overhead
Fetch class attribute can translate value0.00090.119010.0009
Fetch class attribute name0.00090.119820.0004
XML
Image XML parsing0.00010.018710.0001
class_abstraction
Instantiating content class attribute0.00000.000720.0000
General
dbfile0.00070.0908100.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
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 13
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs