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" | |
}, |
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 | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace StoreHours.Models | |
{ | |
public class StoreHoursModel |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using System.Web.Http; | |
using Umbraco.Core.Logging; | |
using Umbraco.Web.WebApi; | |
using SomeNS.Umbraco.Extensions.Models; |
OlderNewer