Is it possible to filter the exported xml by content type in any way? I want to export terms of only one content type...

Thanks...

Comments

dman’s picture

Um, vocabs are assigned to content types through the taxonomy admin page.
A vocab applies to one or more content type. You then choose the vocab to export.
Not sure what can be done there.

To do more would mean filtering by nodes that are in use or something, I don't know what that would look like. Sounds a bit advanced.

Sinan Erdem’s picture

Status: Active » Closed (works as designed)

Hmm. Thank you for the quick answer... So I am marking it as "by design" unless you have any other thing in mind...

Thanks...

Sinan

frank ralf’s picture

Hi Sinan,

The following is an excerpt from the sample.xml that comes with the module:

<?xml version="1.0" standalone="no"?>
<!DOCTYPE taxonomy SYSTEM "taxonomy.dtd">
<vocabulary>
  <vid>5</vid>
  <name>Editorial sections</name>
  <description/>
  <help/>
  <relations>0</relations>
  <hierarchy>1</hierarchy>
  <multiple>0</multiple>
  <required>0</required>

  <nodes>blog,page,story</nodes>

  <weight>0</weight>
  <term>
    <tid>83</tid>
    <vid>5</vid>
    <name>Analysis</name>
    <description>Examines the connections between known facts.</description>
    <weight>0</weight>
    <depth>0</depth>
    <parent>0</parent>
  </term>
   ...
</vocabulary>

You see that the nodes the vocabulary applies to are registered in the aptly named tag "nodes". So at least you could filter your terms after exporting, using XSLT for example.

hth
Frank

dman’s picture

That's for the old Drupal-only-XML format.
The RDF format tagged here does not insert platform-specific data like that. At least it won't unless there are good standards-compliant ways to notate something like that.