Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Kristoffer Lindén 12 posts 122 karma points
    Dec 06, 2019 @ 14:00
    Kristoffer Lindén
    0

    Alias for section is showing as link text in top menu instead of name?

    Hi!

    I have created a new section and it shows up just fine but the name is not showing correctly?

    This is my section:

    "sections": [{
    "alias": "mySection",
    "name": "Custom Section"}]
    

    But it shows up in the top menu as "[mySection]"? Why doesn't "Custom Section" show up as text of the link? I have tried both by using package.manifest and by code.

    I'm running Umbraco 8.0.

    Thanks!

    /Kristofffer

  • Marc Goodson 2155 posts 14406 karma points MVP 9x c-trib
    Dec 07, 2019 @ 11:34
    Marc Goodson
    100

    Hi Kristoffer

    This is to cater for the scenario of you releasing a package to the outside world with your custom section functionality, and people in different countries wanting to translate your Section name into an appropriate language.

    So the Alias is used to 'look up' the text or translated text based on the current editors culture settings.

    There is an explanation here;

    https://our.umbraco.com/Documentation/Extending/Section-Trees/sections#adding-a-language-translation-get-rid-of-the-square-brackets

    (but you'd think it would 'fallback' to the name if one wasn't present!)

    regards

    Marc

  • Kristoffer Lindén 12 posts 122 karma points
    Dec 19, 2019 @ 11:27
    Kristoffer Lindén
    0

    Thanks Marc, worked just perfect.

    Merry Christmas!

    /Kristoffer

Please Sign in or register to post replies

Write your reply to:

Draft