Active
Project:
Feed Element Mapper
Version:
6.x-1.0-beta7
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
21 Apr 2009 at 07:39 UTC
Updated:
21 Apr 2009 at 07:39 UTC
Hi I added some other default mappings in _feedapi_mapper_get_standard_elements() and modify one of the mapper files to suit my needs.
But its seems that if I set the content type feed to 'refresh feed on creation' its doesn't retrieve from the default mappings that I added in. But if I chose NOT TO 'refresh feed on creation' and do a manual refresh, it successfully grab the fields from the other default mappings I have set in _feedapi_mapper_get_standard_elements().
function _feedapi_mapper_get_standard_elements() {
$paths = array();
$paths[] = array('title');
+ $paths[] = array('options', 'raw', 'description');
+ $paths[] = array('options', 'enclosures', 'application', 'x-shockwave-flash', '0', 'keywords' );
$paths[] = array('options', 'original_url');
$paths[] = array('options', 'original_author', 'name');
$paths[] = array('options', 'original_author', 'picture');
$paths[] = array('options', 'original_author');
$paths[] = array('options', 'tags');
It driving me mad that it doesn't work on creation but only manual refresh, any idea why? Thanks