Feeds is a great module, but I need a mapper for the Phone (CCK) module (which defines a phone number CCK field and formats it) http://drupal.org/project/phone
I would do it myself, but I am not a developer and don't have a clue where to start.
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | feeds_phone_mapper.patch | 6.8 KB | awdlewis |
| #3 | feeds_phone_mapper.patch | 6.59 KB | eneko1907 |
Comments
Comment #1
Anonymous (not verified) commentedThis should be really easy. I suggest you take a look at the content mapper and take it from there. This may also be able to be rolled as a patch to the content mapper.
Comment #2
alex_b commentedPostponing as there are no plans to work on this. I'd be happy to accept a patch though, in this case reset the issue status when you post.
Comment #3
eneko1907 commentedAttached is a draft of a phone_mapper patch. Just to repeat, this patch assumes you are using the "phone" module for CCK fields, I didnt explore the location module phones, etc.
I tested it in a non-vanilla install, using a xml processor, and it works fine, maps well 1->n fields, etc.
Note: I also have no idea how to write patches, (just a plumber, not a pro coder). All I did is hack the working patch for the email_mapper, and make some changes, apologies for any problems. Otherwise seems a straightforward patch (works with the latest release of the phone module, 6.x-2.18), no idea about the D7 ports, sorry.
Draft patch attached, Link to draft patch file here
Comment #4
eneko1907 commentedCan I activate this thread?
Comment #5
awdlewis commentedThere is an additional quotation that is causing the patch to break in line 57 ('int_phone''). Removed in file attached.
Comment #6
dave reidFeeds should only support core module feed mappings. This support should live in Phone module.
Comment #7
gazwal commentedsubcribing
need this patch for the 7.X dev version
don't know finally if I have to create the same feature request for the 7 dev .. ?
thx all
Comment #8
berenddeboer commentedgazwai, see this patch.
Comment #9
servantleader commentedthis would make the phone module a lot more useful (It would have a way to import data.). Without this, I will probably have to use a plain text field without validation.