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 System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using Newtonsoft.Json; | |
using Umbraco.Core.PropertyEditors; | |
using Umbraco.Core.Models.PublishedContent; | |
using Archetype.Umbraco.Models; | |
using Archetype.Umbraco.Extensions; |
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
@inherits Umbraco.Web.Mvc.UmbracoTemplatePage | |
@using Archetype.Models; | |
@using Archetype.Extensions; | |
@{ | |
Layout = null; | |
} | |
//use case #1 - Covers a single Archetype | |
@foreach (var fieldset in Model.Content.GetPropertyValue<ArchetypeModel>("a1")) | |
{ |
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
@inherits Umbraco.Web.Mvc.UmbracoTemplatePage | |
@using UrlPicker.Umbraco.Models; | |
@{ | |
Layout = "BasePage.cshtml"; | |
var urlPicker = Model.Content.GetPropertyValue<UrlPicker>("myUrlPickerPropAlias"); | |
} | |
<div>Name: @urlPicker.Name</div> |
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 System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Web; | |
using System.Web.Mvc; | |
using System.IO; | |
using Umbraco.Core.Models; | |
using Umbraco.Web; | |
using Umbraco.Core.Logging; | |
using HtmlAgilityPack; |
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
@inherits Umbraco.Web.Mvc.UmbracoViewPage<ArchetypeFieldsetModel> | |
@{ | |
if (Model == null) | |
{ | |
return; | |
} | |
} | |
@Html.Raw(Model.GetValue("code")) |
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
@inherits Umbraco.Web.Mvc.UmbracoViewPage<ArchetypeFieldsetModel> | |
@using TableEditor.Models; | |
@using Archetype.Models; | |
@{ | |
if (Model == null) | |
{ | |
return; | |
} | |
var tableModel = Model.GetValue<TableEditorModel>("table"); |
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
@inherits Umbraco.Web.Mvc.UmbracoViewPage<ArchetypeFieldsetModel> | |
@using Archetype.Models; | |
@if(Model != null && Model.HasValue("text")) | |
{ | |
<div class="content-block-rte"> | |
@Html.Raw(Model.GetValue("text")) | |
</div> | |
} |
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
@inherits Umbraco.Web.Mvc.UmbracoTemplatePage | |
@using Archetype.Extensions | |
@using Archetype.Models | |
<div> | |
@Html.RenderArchetypePartials(Model.Content.GetPropertyValue<ArchetypeModel>("content")) | |
</div> |
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 System; | |
using System.Web; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using Umbraco.Core; | |
using Umbraco.Core.Publishing; | |
using Umbraco.Core.Logging; |
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
//manifest | |
{ | |
"propertyEditors": [ | |
{ | |
"name": "Store Hours", | |
"alias": "Imulus.StoreHours", | |
"editor": { | |
"valueType": "JSON", | |
"view": "~/App_Plugins/StoreHours/views/store.hours.html" | |
}, |
OlderNewer