Copied to clipboard

Flag this post as spam?

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


  • Ram Prasad K 1 post 71 karma points
    Nov 15, 2017 @ 09:02
    Ram Prasad K
    0

    In Page Navigation

    Please help me how can i achieve in page navigation. I am new to umbraco.

    I have template for title name, description.

    I am considering having a sub menu on the left navigation(#titlename).

    Please let me know how i can achieve this.

  • Frans de Jong 522 posts 1762 karma points c-trib
    Nov 17, 2017 @ 15:24
    Frans de Jong
    0

    What would you like to show in the sidemenu? The children of the page you are on?

  • Dan Diplo 1505 posts 5911 karma points MVP 4x c-trib
    Nov 17, 2017 @ 16:06
    Dan Diplo
    0

    A really simple way to show all the children of the current page would be:

    <ul>
        @foreach (var page in Model.Content.Children())
        {
            <li><a href="@page.Url">@page.Name</a></li>
        }
    </ul>
    

    See https://our.umbraco.org/documentation/Reference/Querying/IPublishedContent/Collections

  • 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.

Please Sign in or register to post replies