Ideally we could use FEMP for mapping not only to node-based feed items, but any feed items.
Once #397682: Let mappers declare mapping targets lands, we are a lot closer to independency from nodes, because detection of mapping targets will not be the responsibility of feedapi_mapper.module anymore.
What's missing then is wrapping the node object in a mapping target object:
// Simple mapper target object wrapper.
class feedapiMapperTarget {
public $type; // e. g. 'node'
public $object; // e. g. $node object
}
and modifying the mapping code accordingly. For instance, node mappers would not react to mapping objects that aren't of type node, RDF mappers would not react to mapping targets of type RDF.
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | 433384-5_feedapi_node_independent.patch | 18.82 KB | alex_b |
| #4 | 433384-4_feedapi_node_independent.patch | 17.04 KB | alex_b |
| #3 | 433384-3_feedapi_node_independent.patch | 16.98 KB | alex_b |
Comments
Comment #1
alex_b commentedComment #2
alex_b commentedTaking a shot at this now.
Comment #3
alex_b commentedThis patch passes all tests. Working on a none-node implementation using this patch now.
Ready for review.
Comment #4
alex_b commentedUpdate to reflect recent commits.
Comment #5
alex_b commented- Fix admin/content/node-type forms.
- Updated api.php
I suggest committing this to a new branch DRUPAL-2 as we're changing the API slightly and there are more fundamental changes to come.
Comment #6
alex_b commentedCommitted to 2.x.