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
<a href="https://facebook.com/"><span class="fa fa-facebook-square"></span></a> |
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
{{ sc_field i_item 'Link' [['text', "<span class="fa " + (sc_follow i_item "Icon" | sc_field "Value") + ""></span>" ]] }} |
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
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="DocumentRenderer.ascx.cs" Inherits="SCApplication.UI.Web.Components.Document.DocumentRenderer" %> | |
<h1> | |
<%= Editable(x => x.Title) %> | |
</h1> | |
<%= Model.DocumentTitle %> | |
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
public partial class DocumentRenderer : GlassUserControl<HomePage> | |
{ | |
protected void Page_Load(object sender, EventArgs e) | |
{ | |
} | |
} |
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
protected void Application_Start(object sender, EventArgs e) | |
{ | |
var loader = new Glass.Sitecore.Mapper.Configuration.Attributes.AttributeConfigurationLoader( | |
"SCApplication.Core.Model, SCApplication.Core.Model"); | |
Context context = new Context(loader); | |
} |
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 SCApplication.Core.Interfaces; | |
namespace SCApplication.Core.Model | |
{ | |
public class HomePage : IHomePage | |
{ | |
public System.Collections.IEnumerable Children { get; set; } | |
public Guid Id { get; set; } |
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 Glass.Sitecore.Mapper.Configuration.Attributes; | |
namespace SCApplication.Core.Interfaces | |
{ | |
[SitecoreClass] | |
public interface IItem | |
{ | |
[SitecoreId] | |
Guid Id { get; set; } | |
} |
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.Collections; | |
using Glass.Sitecore.Mapper.Configuration.Attributes; | |
namespace SCApplication.Core.Interfaces | |
{ | |
[SitecoreClass] | |
public interface IHomePage: IBasePage | |
{ | |
[SitecoreChildren(IsLazy = true, InferType = true)] | |
IEnumerable Children { get; set; } |
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 Glass.Sitecore.Mapper.Configuration.Attributes; | |
namespace SCApplication.Core.Interfaces | |
{ | |
[SitecoreClass] | |
public interface IDocument | |
{ | |
[SitecoreField] | |
string DocumentTitle { get; set; } | |
} |
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 Glass.Sitecore.Mapper.Configuration.Attributes; | |
namespace SCApplication.Core.Interfaces | |
{ | |
[SitecoreClass] | |
public interface IMetaData | |
{ | |
[SitecoreField] | |
string MetaDataTitle { get; set; } | |
} |
NewerOlder