Skip to content

Instantly share code, notes, and snippets.

namespace Corlate.Feature.PageContent.Models
{
using Sitecore.Data.Items;
using System.Collections.Generic;
public class ContactUsFormSource : CustomItem
{
public ContactUsFormSource(Item innerItem) : base(innerItem) { }
///sitecore/content/Corlate/University/Form Data/Contact Us Form Data
public static readonly ID ContactUsFormDataFolder = new ID("{E8277912-B6F7-488D-943D-C19B55D17D13}");
public struct ContactUsFormSource
{
public static readonly ID ID = new ID("{DDC46D14-1B08-4B49-AB51-B478A70290AC}");
public struct Fields
{
public static readonly ID Title = new ID("{C7F614D5-34E3-4A39-8147-E9BCCB750CE9}");
public static readonly ID Description = new ID("{CFBD6A18-A07E-43C4-9E1F-ED9423C74107}");
public static readonly ID Address = new ID("{DC213AC9-4093-4657-9CB6-1B30E49A6627}");
public static readonly ID SocialNetworkLinks = new ID("{523ADD67-822B-47F1-A885-3BA744214B9F}");
/// <summary>
/// gets the template item from master database
/// </summary>
/// <param name="templatePath"></param>
/// <returns></returns>
public static TemplateItem GetTemplateItem(string templateID)
{
TemplateItem templateItem = null;
if (!string.IsNullOrEmpty(templateID))
@using Corlate.Feature.PageContent.Models
@using Sitecore.Mvc
@model TestimonialsSource
@{
Layout = null;
}
@if (Model != null)
{
<!--=========== BEGIN TESTIMONIAL SECTION ================-->
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;
namespace Corlate.Feature.PageContent.Models
{
using Sitecore.Data.Items;
using System.Collections.Generic;
public class TestimonialsSource : CustomItem
{
public TestimonialsSource(Item innerItem) : base(innerItem) { }
namespace Corlate.Feature.PageContent.Models
{
using Sitecore.Data.Items;
public class UserTestimonial : CustomItem
{
public UserTestimonial(Item innerItem) : base(innerItem) { }
public string NameID
public struct UserTestimonial
{
public static readonly ID ID = new ID("{13460155-D3DA-4922-96EE-E3FAB9E8AA77}");
public struct Fields
{
public static readonly ID Name = new ID("{07857D68-C114-4166-96A0-86F3A108407D}");
public static readonly ID Designation = new ID("{4B2BE496-2C65-4D92-9FCF-35E6B77FC436}");
public static readonly ID Image = new ID("{D205BAE8-7EEE-4E44-B212-8B887AA34D78}");
public static readonly ID Testimonial = new ID("{0244EFDD-1A7A-4B84-874D-320E44F29728}");
@using Corlate.Feature.PageContent.Models
@using Sitecore.Mvc
@model CourseTeasersCarouselSource
@{
Layout = null;
}
@if (Model != null)
{
<section id="ourCourses">