Zum Hauptinhalt springen
tsecurity.de LIVE
Echtzeit-Radar & Feeds
Alle RSS Feeds
👥 Community & Social
IT Security Nachrichten7 AI Security Best Practices For Deploying Generative AI In Cyber Teams(23.09.2026 um 11:31 Uhr)
IT Security NachrichtenEssential AI Security Trends Shaping Cyber Defense Strategies(23.09.2026 um 11:35 Uhr)
IT Security NachrichtenHow AI-Powered Threat Detection Catches What Traditional Tools Miss(23.09.2026 um 11:39 Uhr)
IT Security NachrichtenAI Security Guidelines And Frameworks Enterprises Need To Be Aware Of(23.09.2026 um 11:46 Uhr)
IT Security NachrichtenWhat Are the Main Security Risks Associated With Generative AI?(23.09.2026 um 11:51 Uhr)
IT Security NachrichtenHow Is GenAI Transforming Cybersecurity Strategies?(23.09.2026 um 11:53 Uhr)
IT Security NachrichtenCan AI Be Used To Effectively Prevent Cyberattacks?(23.09.2026 um 11:58 Uhr)
IT Security NachrichtenAre There Any Government Policies On Using AI For Cybersecurity?(23.09.2026 um 12:00 Uhr)
IT Security Nachrichten7 AI Security Best Practices For Deploying Generative AI In Cyber Teams(23.09.2026 um 11:31 Uhr)
IT Security NachrichtenEssential AI Security Trends Shaping Cyber Defense Strategies(23.09.2026 um 11:35 Uhr)
IT Security NachrichtenHow AI-Powered Threat Detection Catches What Traditional Tools Miss(23.09.2026 um 11:39 Uhr)
IT Security NachrichtenAI Security Guidelines And Frameworks Enterprises Need To Be Aware Of(23.09.2026 um 11:46 Uhr)
IT Security NachrichtenWhat Are the Main Security Risks Associated With Generative AI?(23.09.2026 um 11:51 Uhr)
IT Security NachrichtenHow Is GenAI Transforming Cybersecurity Strategies?(23.09.2026 um 11:53 Uhr)
IT Security NachrichtenCan AI Be Used To Effectively Prevent Cyberattacks?(23.09.2026 um 11:58 Uhr)
IT Security NachrichtenAre There Any Government Policies On Using AI For Cybersecurity?(23.09.2026 um 12:00 Uhr)
Intelligence View
⚡ tsecurity.de Intelligence

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…

0
↗ Quelle (dev.to)
Reagiere als Erste:r — dein Feedback zählt!

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.



Umbraco top navigation



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. we will cover them a bit later, but for now just to so you know you can just put a string in for the label value if you want







2. Dashboard



(see DoStuffWithUmbraco repo : Dashboards)



At this point your section is quite empty, but you can add a dashboard quite easily to get some content in there.



Dashboards are pages that sit at the top level of a section, almost all the sections in umbraco already have dashboards (Content has news, and redirect, settings has, examine, health checks and profiling to name a few).



you can add your own dashboard to your own sections or existing sections as you choose.




const dashboardManifest: UmbExtensionManifest = {
type: "dashboard",
alias: "DoStuff.Dashboard",
name: "DoStuff Dashboard",
js: () => import("./dashboard.element.js"),
meta: {
label: "#DoStuff_DashboardName",
pathname: "do-stuff-dashboard",
},
conditions: [
{
alias: "Umb.Condition.SectionAlias",
match: DOSTUFF_SECTION_ALIAS,
},
],
};






Here we define the alias and element we want to use for our dashboard, and the condition determines where it lives.



there are all sorts of conditions in umbraco, but here we are saying if the section alias is that of our custom section then we are happy. If we didn't have a condition the dashboard would appear in all sections




Again note the use of a constant for the section alias_




Dashboards are WebComponents, they are probibly the simplest ones in umbraco you don't have to inherit anything (if you don't want to) - there are no contexts, or stores or tree's required, you element can just render some HTML.




@customElement("do-stuff-dashboard-element")
export class DoStuffDashboardElement extends UmbLitElement {
override render() {
return html`<umb-body-layout
.headline=
${this.localize.term("doStuff_dashboardTitle")}
>
<uui-box>
<umb-localize key="doStuff_dashboardIntro"></umb-localize>
</uui-box>
</umb-body-layout>`
;
}
}

export default DoStuffDashboardElement;







Note : We do inherit from UmbLitElement as opposed to LitElement, this gives you access to the localization helpers amongst other things, so it's worth doing, even though you don't have to.




DoStuff Dashboard.






3. Sidebar App.



You have probibly notices that almost all existing sections in umbraco have some form of menu or tree down the left hand side. In Umbraco speak this is a "SidebarApp" and it can contain almost anything! - but usually its menu items and trees.



A sidebar is registered in a manifest file.




const sidebarManifest: UmbExtensionManifest = {
type: "sectionSidebarApp",
kind: "menu",
alias: "DoStuff.SectionSidebarApp",
name: "DoStuff Section Sidebar App",
meta: {
label: "#doStuff_sidebarStaticAppName",
menu: "DoStuff.Static.Menu",
},
conditions: [
{
alias: "Umb.Condition.SectionAlias",
match: DOSTUFF_SECTION_ALIAS,
},
],
};






On its own a sidebar app is quite empty.



Empty sidebar



So we need to add some menus and items.






4. Menus



Within a standard sidebar you can have a number of 'menus' these are the sections you see in the settings section, "Structure", "Templating" and "Advanced" are Menus



Umbraco settings section



to add your own, we have a manifest.




const menuManifest: UmbExtensionManifest = {
type: "menu",
alias: "DoStuff.Static.Menu",
name: "DoStuff Static Menu",
};






but with out any menu items you won't see much , so lets add a menu item.




const timeItemManifest: UmbExtensionManifest = {
type: "menuItem",
alias: "DoStuff.TimeItem",
name: "DoStuff Time Item",
weight: 10,
meta: {
label: "#doStuff_timeItemName",
icon: "icon-time",
entityType: DOSTUFF_TIME_ITEM_ALIAS,
menus: ["DoStuff.Static.Menu"],
},
};






You can see how we assign the menu item to the menu, and the menu is actually assigned in the section definition.




Don't worry to much about the entityType just yet, its going to get funky when we talk about workspaces. but for now lets just bask in the menu glory.




Custom section, dashboard, and menu item



All the client code in this article is available in the DoStuffWithUmbraco Client repo

Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten Battle scarred developer's guide to Umbraco v17 - Sections

Thematisch verwandte Begriffe: Battle, scarred, developers, guide · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Zum Aktualisieren ziehen
ZERO-DAY CVE-2026-96258 | A vulnerability has been found in onSite internet GmbH Auktion NG Auktio…
Advisory →
TTS Reader • tsecurity.de Voice
tsecurity.de Icon
tsecurity.de App
Offline-Lesen, Eilmeldungen & 0ms Ladezeit

Installiere tsecurity.de direkt auf deinen Home-Bildschirm für das ultimative Vollbild-Magazinerlebnis ohne Browser-Leisten.

Nächster Beitrag
Themen-Radar & Intelligence Matrix
Echtzeit-Taxonomie nach Angriffsvektoren & Plattformen

tsecurity.de Live Threat Radar

🔴 LIVE RADAR
MONITORING
AKTIV
CVE-DATENBANK
LIVE
🔍
Community Radar & Live Chat
Sentinel Bot online • Live-Stream
Dein Cluster: Security Explorer
Match:
lädt…
Verbindung zum Community-Stream wird aufgebaut...
Bearbeitungsmodus — Senden überschreibt deine Nachricht
Community-Puls — was gerade passiert
lädt…
Aktivitäten deiner Analysten
lädt…
Neues Thema oder Eilmeldung einreichen

Reiche interessante Links, Zero-Days oder Debatten ein. Die Community entscheidet per Upvote über die Veröffentlichung.

Heiß diskutierte Einreichungen
🔖 Gespeicherte Artikel
📂 Keine gespeicherten Artikel vorhanden.
Zurück Ziehen Vor
Links: vorheriger Artikel Rechts: nächster Artikel unten: schließen
News NIS-2 Frühwarnung Tier-1 Intel ⏱️ 3 Min vor 10 Min
Artikeldaten werden geladen...

Zurück: vorheriger Vor: nächster
↗ Original-Quelle
Social Reaktionen Deine Reaktion zählt
Einstufung & Relevanz-Poll 0 Stimmen
In sozialen Netzwerken teilen 1-Klick