
Battle scarred developer's guide to Umbraco v17 - Sections
So now, we are getting into the code! as with all the bits in this series all the code is available on the DoStuffWithUmbraco repo . 1. Sections (see DoStuffWithUmbracoRepo : Sections ) A section in umbraco is something accessed from the top bar navigation menu. Its quite simple to add a new section - all you need is the manifest. const sectionManifest : UmbExtensionManifest = { type : " section " , alias : DOSTUFF_SECTION_ALIAS , name : " DoStuff Section " , weight : 10 , meta : { label : " #doStuff_sectionName " , pathname : " do-stuff " , }, }; Constants Here we have used a constant for the alias, because its often true you will need to reference the section alias in other places on your site. The alias is defined in another file. export const DOSTUFF_SECTION_ALIAS = " DoStuff.Section " ; and this replaces the string value in the manifest. Localization You might also notice that the label value starts with a '#', this tells umbraco that we want to use a localize value for the label.
Continue reading on Dev.to
Opens in a new tab



