Quantcast
Channel: Issues importing nodes containing taxonomy terms with &/& using feeds - Drupal Answers
Viewing all articles
Browse latest Browse all 2

Issues importing nodes containing taxonomy terms with &/& using feeds

$
0
0

I have a view that outputs XML either on screen (using Views Datasource) or a file (using Views Data Export), and I'm attempting to import the data generated by the view using the feeds module.

The view contains several taxonomies, some of which contain terms with an ampersand (e.g. "Finance & administration).

The datasource view outputs the term without encoding these ampersands "&", while the views data export seems to encode them regardless of the setting in the view to do it or not. (The value stored in the dB is "&", not "&amp".)

With the datasource feed import, it appears all nodes that have & in at least one term associated to the node are skipped. I say this because those nodes never even show up in the debug output (which sounds like a bug to me).

With the views data export XML file import, all the nodes are imported, but the taxonomies that accept multiple values never get set properly.

Using Feeds tamper, I have tried using html entity decode/encode, and attempted to use it before/after explode, but nothing seems to fix either issue. I believe I should focus on the XML file import since at least all nodes are being imported.

Any thoughts on what may be happening during the XML file import, and how to address the issue? All the modules are the latest stable version.


Viewing all articles
Browse latest Browse all 2

Latest Images

Trending Articles





Latest Images