Copied to clipboard

Flag this post as spam?

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

  • mikkel 143 posts 365 karma points
    May 08, 2020 @ 17:14

    Need help with dynamic menu

    I don't know what it is called when you search Google on how to make a dynamic menu in umbraco for a website that scrolls down when you press the menu links, just like the page here.

    I know you use #contact in the menu link to scroll down to the contact section of the page, but I have no idea how to make a menu like that in umbraco that is dynamic

  • Yakov Lebski 473 posts 1878 karma points
    May 09, 2020 @ 02:12
    Yakov Lebski

    It very depend on your implementation:

    1. You can use Nested Content to mange links to ids in code
    2. In case that you are using grid and each row is element menu, you can parse grid rows and show it
    3. You can do it hard coded - not very nice
  • mikkel 143 posts 365 karma points
    May 09, 2020 @ 07:12

    thanks for reply. it is one of the harder ones to make in umbraco and i have tried for a long time now without a solution. if i need to find a solution on google what should i look for

  • Dmitriy 168 posts 588 karma points
    May 09, 2020 @ 13:06

    Hi, the question you have rather related to pure frontend and not depends on Umbraco.

    All you have to do on Umbraco-side is to create content blocks IDs and get it in the navigation menu.

    foreach(var item in Model.ContentBlocks){
        <a href="#@(item.Title.ToSafeAlias())">@item.Title</a>

    where Model.ContentBlocks is your NestedContent datatype property and item.Title is property of each of your NestedContent item.

Please Sign in or register to post replies

Write your reply to: