Copied to clipboard

Flag this post as spam?

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


  • Jonathan Roberts 409 posts 1063 karma points
    Apr 03, 2020 @ 09:24
    Jonathan Roberts
    0

    Umbraco 8 - check if Html.GetGridHtml has content

    Hi,

    I want to check if the Html.GetGridHtml row has grid blocks and if it has then show an Anchor link to the section - if it doesn't then I would hide the anchor link.

    Is there a way to check if the Html.GetGridHtml has grid blocks?

    Thanks

    Jon

  • Yakov Lebski 554 posts 2118 karma points
    Apr 03, 2020 @ 14:30
    Yakov Lebski
    0

    I think you need create custom grid render, you can see example in Views\Partials\Grid in Bootstrap3-Fluid.cshtml or Bootstrap3.cshtml you can copy one of it and modify to add links

Please Sign in or register to post replies

Write your reply to:

Draft