Take the 2-minute tour ×
Drupal Answers is a question and answer site for Drupal developers and administrators. It's 100% free, no registration required.

I have an xml feed to import to and mapped to a content type. However, there are fields that are referenced to taxonomy. The fields that are not referenced seems to be working fine and are getting picked up. But those that are referenced to a taxonomy vocabulary are not. I'm using feeds_xpathparser-6.x-1.11, feeds_tamper-6.x-1.0-beta2, feeds-6.x-1.0-beta11 on drupal 6.22.

How can I import data from xml from say:

<properties>
  <item>
    <refid>1234</refid>
    <propertytype>Apartment</propertytype>
    <!-- ... -->
  </item>
</properties>

I want to be able to import propertytype to this content type as 'Apartment' as referenced to a taxonomy vocabulary - 'Property Types':

Property Types (Taxonomy Vocab)
Apartment
Townhouse
Villa
etc...

I've learned that taxonomy referenced fields stores data to a separate table in the database. Does this mean I have to manually do insert query to these tables separately? Or is has anyone encountered the same predicament?

share|improve this question
    
Are you using the Taxonomy Fields module or only the Taxanomy module? –  Pierre Buyle Aug 6 '11 at 16:18
    
only taxonomy module.. –  jan Aug 6 '11 at 16:23

1 Answer 1

You create taxonomy vocabulary by name property types and attach this to the content type you are using for feeds import.Map the fields accordingly. //properties/item as context propertytype to the term reference field you have attached to the content-type.But remember just create vocabulary and don't add any terms.Once you do feeds import you can see the terms under property type vocabulary.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.