Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mapping XML node attributes to field #16

Closed
oncode opened this issue Sep 16, 2015 · 5 comments
Closed

Mapping XML node attributes to field #16

oncode opened this issue Sep 16, 2015 · 5 comments
Milestone

Comments

@oncode
Copy link

oncode commented Sep 16, 2015

When I read a XML feed in a template, I can access a node attribute by:
{{ xml.field.attributes.my_attribute }}

Is it also possible to map a node attribute and not just a node to a destination field when I add a feed in the backend?

@engram-design
Copy link
Contributor

Its not possible at the moment through the feed setup, but I'll add it to the roadmap. For the moment, you'll need to restructure your feed to put the values you wish to map inside node tags.

@oncode
Copy link
Author

oncode commented Sep 16, 2015

Unfortunately it's not my feed, but I think I'll just read it in the template.
Thanks anyway for your awesome plugin!

@engram-design
Copy link
Contributor

Ah, yeah if thats the case, you'll unfortunately have to build something in the middle that modifies the original feed. I've done this before for an ExpressionEngine site with Datagrab, as that doesn't support attribute mapping either. Will let you know when this has been added!

@BobD
Copy link

BobD commented Jan 10, 2016

Hi there,

I love this plugin. I'm trying to achieve the same thing reading in some RSS feeds. What would be the easiest way to go about this besides altering the feed beforehand? Is there perhaps some event hook available firing after an entry is created so you can add the attribute feed afterwards? Or would you have to create entry from scratch?

@engram-design engram-design added this to the 2.0.0 milestone Jul 5, 2016
@engram-design
Copy link
Contributor

This has finally been added to Feed Me 2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants