public void Start() { foreach (ItemDefinition definition in definitions.GetDefinitions()) { if (IsPage(definition)) { TabContainerAttribute seoTab = new TabContainerAttribute("seo", SeoTabTitle, 30); definition.Add(seoTab); AddEditableText(definition, TitleTitle, SeoConcern.HeadTitle, 151, 200); AddEditableText(definition, MetaKeywordsTitle, SeoConcern.MetaKeywords, 152, 400); AddEditableText(definition, MetaDescriptionTitle, SeoConcern.MetaDescription, 153, 1000); } } }
protected override Control AddEditor(Control container) { var panel = AddPanel(container); foreach (var themeDirectory in GetThemeDirectories()) { var themeName = Path.GetFileName(themeDirectory); if (string.IsNullOrEmpty(themeName)) { continue; } var tabContainer = new TabContainerAttribute(themeName + "-tab", themeName, 0); var tab = tabContainer.AddTo(panel) as TabPanel; var editor = new ItemEditor { ID = themeName.ToLower() }; editor.Init += OnChildEditorInit; tab.Controls.Add(editor); AddValidator(tab); } return(panel); }