I know that one can have categories/vocabulary terms be created on the fly if they don't exist already. But is there any way to create them within a hierarchy? Or does the hierarchy need to be created in advance for new items to be placed within sub-categories?

Example: I want to to have a top level category named Science with biology, astronomy, and physics as sub-categories. Can it create the top level and sub-categories during import or do I need to create those first, and just have it process the subcategory?

Thanks for any help!

Steve

Comments

vito_swat’s picture

If you organize your terms in hierarchy this hierarchy will be kept but all new terms will be created as top hierarchy elements.
If your feeds are one-topic ones (so feed for biology only) you can organize your feed items in hierarchy in another vocabulary without using auto-category as not every feed provides category info...

As you see everything depends on your feeds.

teach42’s picture

Just to confirm then, I should enter the hierarchy myself in advance.

For example:
Science
-Chemistry
-Physics
-Earth Sciences
---Geology
-Arts and music

In this example, if I want to bring in an item in Geology, just using the category geology should work. I don't need to specific science|Earth Sciences|Geology Correct?

But there wouldn't be any way to create that sort of hierarchy on the fly with a custom built xml feed, right?

vito_swat’s picture

In this example, if I want to bring in an item in Geology, just using the category geology should work. I don't need to specific science|Earth Sciences|Geology Correct?

Yes that's correct.

But there wouldn't be any way to create that sort of hierarchy on the fly with a custom built xml feed, right?

The answer is yes and no. If new term arrive in your feed it will be added as top hierarchy term, because Aggregation module doesn't know how to organize your hierarchy. But after you notice this you can rearange your hierarchy in taxonomy module (core). This will bring order to your feed items.

So if there will be item with tag music you will have hierarchy like:
Science
-Chemistry
-Physics
-Earth Sciences
---Geology
-Arts and music
Music

If you change your hierarchy to:
Science
-Chemistry
-Physics
-Earth Sciences
---Geology
-Arts and music
---Music

All your feeds with Music tag will have Science| Arts and music | Music hierarchy.

Check handbook pages for taxonomy module or play with it in your testing environment to know it better.

teach42’s picture

Status: Active » Closed (fixed)

Great point. Thanks for helping to clear that up!

Steve