Is there a way to import categories and tags?

Posted by Community Admin on 04-Aug-2018 14:06

Is there a way to import categories and tags?

All Replies

Posted by Community Admin on 30-Nov-2012 00:00

Is there a way to import categories and tags? We want to be able to categorize or tag items by local chapter names and that is a list of over 500 names. Is there a way to bulk add to the list of categories and tags in Sitefinity?

Posted by Community Admin on 30-Nov-2012 00:00

You can do it programmatically I think:
www.sitefinity.com/.../hierarchical-taxonomy-api

Posted by Community Admin on 04-Dec-2012 00:00

Thanks, I think I've figured out the syntax for adding to an existing category, except for synonyms. I haven't been able to figure out the correct syntax for including a synonym with the new item, is there an example of that somewhere? I haven't found it in the API documentation.

Posted by Community Admin on 03-Feb-2014 00:00

Hi,

Find a sample of adding a taxon synonym to a tag below:

TaxonomyManager manager = TaxonomyManager.GetManager();
var taxa = manager.GetTaxa<FlatTaxon>().Where(t => t.Name == "Test").Single();
Guid newGuid = Guid.NewGuid();
var synonym = manager.CreateSynonym(newGuid);
synonym.Value = "Test123";
synonym.Parent = taxa;
 
manager.SaveChanges();

We will update our documentation and will add this new sample soon.

Regards,
Stefani Tacheva
Telerik
Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items

This thread is closed