-
-
Save sitefinitysteve/ce91b9ead133be0bddc55d27fa96b30f to your computer and use it in GitHub Desktop.
Content block example for https://plus.google.com/111258374592523071655/posts/9qxgN6BXrae
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
@model Telerik.Sitefinity.Frontend.ContentBlock.Mvc.Models.IContentBlockModel | |
@using Telerik.Sitefinity.Frontend.Mvc.Helpers; | |
@if(Model.Content.Contains("something to check")){ | |
@Html.Script(Url.WidgetContent("~/myfolder/myscript.min.js"), "bottom") | |
} | |
<div class="@Model.WrapperCssClass" @Html.InlineEditingAttributes(Model.ProviderName, Model.ContentType, Model.SharedContentID)> | |
<div @Html.InlineEditingFieldAttributes("Content", "LongText")> | |
@Html.HtmlSanitize(Model.Content) | |
</div> | |
@{ | |
if (Model.EnableSocialSharing) | |
{ | |
@Html.SocialShareOptions(null); | |
} | |
} | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment