Is it possible to override the section name in Umbraco 8?
What I want to do is rename the "Users" section (tab) to "Umbraco Users" because I am implementing a new section that will also be managing external users (Auth0).
In other words, I want to have the old Users tab be named "Umbraco Users" while the new tab will be called "Clients".
I've tried creating a new Section with the same alias of Users, but it breaks.
namespace MyCustom.Sections
{
using Umbraco.Core.Composing;
using Umbraco.Core.Models.Sections;
using Umbraco.Web;
public class SectionComposer : IUserComposer
{
/// <summary>Compose.</summary>
public void Compose(Composition composition)
{
composition.Sections().Append<UserSection>();
}
}
public class UserSection : ISection
{
/// <inheritdoc />
public string Alias => "Users";
/// <inheritdoc />
public string Name => "Users";
}
}
Override Section Name
Is it possible to override the section name in Umbraco 8?
What I want to do is rename the "Users" section (tab) to "Umbraco Users" because I am implementing a new section that will also be managing external users (Auth0).
In other words, I want to have the old Users tab be named "Umbraco Users" while the new tab will be called "Clients".
I've tried creating a new Section with the same alias of Users, but it breaks.
Hi Carlos,
I think the easiest way is to do it by changing the label in the translation files.
https://our.umbraco.com/Documentation/Extending/Section-Trees/sections#adding-a-language-translation-get-rid-of-the-square-brackets
Yeah that does the trick. Thank you!
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.