This post is on the older side and its content may be out of date.
Be sure to visit our blogs homepage for our latest news, updates and information.
var configManager = ConfigManager.GetManager();
var viewMap = configManager.GetSection<ControlsConfig>();
ConfigProperty property;
var viewMapValue = viewMap.Properties.TryGetValue(
"viewMap"
,
out
property);
string
[][] bag =
new
string
[4][];
bag[0] =
new
string
[2] {
"Value"
,
"Telerik.Sitefinity.Web.UI.NavigationControls.SiteMapNavigations.SiteMapNavigationTabStrip, Telerik.Sitefinity"
};
bag[1] =
new
string
[2] {
"Key"
,
"HostType"
};
bag[2] =
new
string
[2] {
"Value"
,
"~/CustomNavigationTemplate.ascx"
};
bag[3] =
new
string
[2] {
"Key"
,
"LayoutTemplatePath"
};
var ConfigSectionItems =
new
ConfigSectionItems();
ConfigSectionItems.SaveBatchConfigSection(bag,
"ViewMap_0,controlsConfig_0"
,
""
,
""
,
null
,
"New"
,
""
);
Telerik.Sitefinity.Web.UI.NavigationControls.SiteMapNavigations.SiteMapNavigationTabStrip
~/CustomNavigationTemplate.ascx
Subscribe to get all the news, info and tutorials you need to build better business apps and sites