Forums / Developer / Rss import custom fields

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.