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?
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
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
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
is working on a reply...