-
Notifications
You must be signed in to change notification settings - Fork 139
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
Comments
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. |
Unfortunately it's not my feed, but I think I'll just read it in the template. |
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! |
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? |
This has finally been added to Feed Me 2. |
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?
The text was updated successfully, but these errors were encountered: