Copied to clipboard

Flag this post as spam?

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


  • Amir Khan 1282 posts 2739 karma points
    Feb 14, 2022 @ 21:29
    Amir Khan
    0

    Block List use partial besides default.cshtml

    Hi, I'm trying to render only certain blocks to use for an in page navigation and am wonder if its possible to use a partial besides default.cshtml when rendering a block list?

    Basically I want to write a check for the block alias and do something different with only certain blocks.

    Thanks! Amir

  • Amir Khan 1282 posts 2739 karma points
    Feb 14, 2022 @ 21:46
    Amir Khan
    1

    Looks like you can just do this:

    @Html.GetBlockListHtml(Model.BlockElements, "JumpLinks")
    
Please Sign in or register to post replies

Write your reply to:

Draft