A common question I receive is the following: I have tried to save my site as a template using "Site Action" – "Save site as template" but this option is not available as soon as I enable the publishing feature. After some tries I managed to save the site as a template my adding "_layouts/savetmpl.aspx" behind […]

Yesterday I received an interesting question: a customer had the need to import several hundred keywords and related best bets programmatically to a couple of site collections. And for sure he did not want to do this manually using the web UI. I found the following solution for this problem: SPSite spsite = new SPSite(“http://localhost:4007”); SearchContext searchContext = SearchContext.GetContext(spsite); Keywords keywords = new Keywords(searchContext, new Uri(“http://localhost:4007”)); // loop begin Keyword myKeyword = keywords.AllKeywords.Create(“myKeyword”, DateTime.Now); […]