Created
October 14, 2015 15:10
-
-
Save sitefinitysteve/90cebd0658370a81402a to your computer and use it in GitHub Desktop.
Detect when your view is being indexed
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@using Telerik.Sitefinity.Frontend.Mvc.Infrastructure.Controllers; | |
@if (ViewContext.Controller.GetIndexRenderMode() == Telerik.Sitefinity.Web.UI.IndexRenderModes.Normal) | |
{ | |
<div>FROM LAYOUT</div> | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment