Hi Jim,
I hope you can assist with the issue we are experiencing. We have a custom CMS application. It allows our customers to dynamically create new domains, sub-domains for there websites. When the customer creates a new domain we dynamically create the folders and configuration files (see below). the question is, how can we programmatically create content categories? Mostly this is to separate documents (pdf, doc, docx, etc.) from web pages.
We would like to automatically create content categories called
"Web Pages"
"Documents"
private Configuration CreateConfiguration(string indexRoot, Domain domain, Language language)
{
Configuration conf = new Configuration();
createDirectory(indexRoot, indexRoot + domain.Name.Replace(" ", "_") + @"\" + language.Abbreviation);
ConfigurationManager cm =
new ConfigurationManager(indexRoot + domain.Name.Replace(" ", "_") + @"\" + language.Abbreviation);
cm.RetrieveConfiguration(conf);
conf.MaximumCrawlDepth = MaximumCrawlDepth;
conf.Logging = Logging;
conf.CrawlSubdomains = false;
conf.RespectsRobotsMetaTags = false;
conf.RespectsRobotsTXT = false;
cm.SaveSettings(conf);
return conf;
}
thanks,
-Dan