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 1289 posts 2746 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 1289 posts 2746 karma points
    Feb 14, 2022 @ 21:46
    Amir Khan
    1

    Looks like you can just do this:

    @Html.GetBlockListHtml(Model.BlockElements, "JumpLinks")
    
  • 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