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 18 posts 179 karma points
    Apr 11, 2022 @ 15:05
    Nathan Rogan
    0

    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 512 posts 2813 karma points MVP 5x 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 18 posts 179 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