Copied to clipboard

Flag this post as spam?

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


  • Nathan Rogan 22 posts 203 karma points
    Apr 11, 2022 @ 15:05
    Nathan Rogan
    0

    Page name in Block List

    Does anyone know if possible to display the page name within a Block List?

    E.g Display the page name within a hero / banner?

    Thanks

  • Paul Seal 524 posts 2889 karma points MVP 7x c-trib
    Apr 12, 2022 @ 15:06
    Paul Seal
    100

    Hi

    You can do it like this in your partial view for the block list item.

    @{
        var contentItem = Umbraco.AssignedContentItem;
    }
    
    <p>Name: @contentItem.Name</p>
    

    I hope it helps

    Paul

  • Nathan Rogan 22 posts 203 karma points
    Apr 12, 2022 @ 16:14
    Nathan Rogan
    0

    Thanks Paul, that's worked perfectly

Please Sign in or register to post replies

Write your reply to:

Draft