This file contains hidden or 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 ActionResult RenderCourseTeasersCarousel() | |
{ | |
CourseTeasersCarouselSource viewModel = null; | |
try | |
{ | |
//get the datasource item assigned to the rendering | |
Item renderingDatasourceItem = SitecoreUtility.GetRenderingDatasourceItem(); | |
if (renderingDatasourceItem != null && renderingDatasourceItem.TemplateID == References.Templates.CourseTeasersCarouselSource.ID) |
This file contains hidden or 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 struct CourseTeasersCarouselSource | |
{ | |
public static readonly ID ID = new ID("{4C3E2C47-7109-453D-87D4-9E8B8CE0A412}"); | |
public struct Fields | |
{ | |
public static readonly ID IsActive = new ID("{3FD2ED95-CFD1-4E47-8017-2174BB49C55D}"); | |
public static readonly ID Title = new ID("{DF8964B9-B041-4305-8115-EDA1534B58F0}"); | |
public static readonly ID CourseArchivePage = new ID("{FC940B28-75AF-4FFE-8402-B7357CD5D049}"); | |
} |
This file contains hidden or 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 Corlate.Feature.PageContent.Models | |
@using Sitecore.Mvc | |
@model FacetsSource | |
@{ | |
Layout = null; | |
} | |
@if (Model != null) | |
{ | |
<section id="whyUs"> |
This file contains hidden or 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
namespace Corlate.Feature.PageContent.Controllers | |
{ | |
using Corlate.Feature.PageContent.Models; | |
using Corlate.Foundation.Common.Models; | |
using Corlate.Foundation.Common.Utilities; | |
using Sitecore.Data.Items; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Web.Mvc; |
This file contains hidden or 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
namespace Corlate.Feature.PageContent.Models | |
{ | |
using Sitecore.Data.Items; | |
using System.Collections.Generic; | |
public class FacetsSource : CustomItem | |
{ | |
public FacetsSource(Item innerItem) : base(innerItem) { } |
This file contains hidden or 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
namespace Corlate.Feature.PageContent.Models | |
{ | |
using Sitecore.Data.Items; | |
public class Facet : CustomItem | |
{ | |
public Facet(Item innerItem) : base(innerItem) { } | |
public string TitleID |
This file contains hidden or 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 struct Facet | |
{ | |
public static readonly ID ID = new ID("{E152A74B-D355-44C3-B6B0-53898546C757}"); | |
public struct Fields | |
{ | |
public static readonly ID Title = new ID("{3340851C-7B6D-4DFC-AA8F-B4773F7C55EC}"); | |
public static readonly ID Description = new ID("{C4A19EFA-2E3D-42D0-84CC-2518CDE50658}"); | |
public static readonly ID ImageCSSClass = new ID("{8029A722-4626-4868-82FF-28C0FCCAB5B2}"); | |
public static readonly ID IsActive = new ID("{7C7F62D3-4F57-43EB-B29F-2D2F853AB006}"); |
This file contains hidden or 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 Corlate.Feature.PageContent.Models | |
@using Sitecore.Mvc | |
@model RichTextSection | |
@{ | |
Layout = null; | |
} | |
@if (Model != null) | |
{ | |
<section class="aboutUs"> |
This file contains hidden or 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
namespace Corlate.Feature.PageContent.Controllers | |
{ | |
using Corlate.Feature.PageContent.Models; | |
using Corlate.Foundation.Common.Models; | |
using Corlate.Foundation.Common.Utilities; | |
using Sitecore.Data.Items; | |
using System.Web.Mvc; | |
public class RichTextSectionController : Controller |