public static RenderingEngineOptions AddFeatureHero(this RenderingEngineOptions options) { options.AddModelBoundView <HeroBig>("HeroBig") .AddModelBoundView <HeroMedium>("HeroMedium"); return(options); }
public static RenderingEngineOptions AddFeatureServices(this RenderingEngineOptions options) { options .AddPartialView("TestimonialContainer") .AddModelBoundView <Testimonial>("Testimonial"); return(options); }
// ======================================================================= /// <summary> /// Pass Okta id_token as header from rendering host to sitecore app for login /// </summary> /// <param name="options"></param> private static void AddOktaAuthHeaders(RenderingEngineOptions options) { options.MapToRequest((httpRequest, sitecoreLayoutRequest) => { IDictionary <string, string[]> headers = new Dictionary <string, string[]>(System.StringComparer.OrdinalIgnoreCase); var str = GetAuthenticationHeader(httpRequest.HttpContext); if (string.IsNullOrEmpty(str)) { return; } if (headers.ContainsKey("authorization")) { return; } headers.Add("authorization", new[] { "Bearer " + str }); sitecoreLayoutRequest.AddHeaders(headers); }); }
public static RenderingEngineOptions AddFeatureForms(this RenderingEngineOptions options) { options.AddModelBoundView <ApplicationModel>("Application") .AddModelBoundView <TermsAndConditionsModel>("Terms"); return(options); }
public static RenderingEngineOptions AddFeatureNavigation(this RenderingEngineOptions options) { options.AddModelBoundView <TopLinks>("TopLinks") .AddModelBoundView <MainNav>("MainNav") .AddModelBoundView <Footer>("Footer"); return(options); }
public static RenderingEngineOptions AddFoundationUser(this RenderingEngineOptions options) { options.AddPartialView("SignIn"); AddOktaAuthHeaders(options); return(options); }
public static RenderingEngineOptions AddFeatureProducts(this RenderingEngineOptions options) { options .AddModelBoundView <ProductList>("ProductList") .AddModelBoundView <ProductDetailHeader>("ProductDetailHeader") .AddModelBoundView <ProductDetail>("ProductDetail") .AddModelBoundView <RelatedProductsList>("RelatedProducts"); return(options); }
public static RenderingEngineOptions AddFeatureBasicContent(this RenderingEngineOptions options) { options .AddModelBoundView <PromoCard>("PromoCard") .AddPartialView("PromoContainer") .AddModelBoundView <SectionHeader>("SectionHeader") .AddModelBoundView <HeroBanner>("HeroBanner") .AddPartialView("Accordion") .AddModelBoundView <AccordionItem>("AccordionItem"); return(options); }
public static RenderingEngineOptions AddFeatureBasicContent(this RenderingEngineOptions options) { options.AddModelBoundView <AnnouncementBar>("AnnouncementBar") .AddModelBoundView <HalfWidthBanner>("HalfWidthBanner") .AddModelBoundView <ContentList>("ContentList") .AddModelBoundView <RichTextContent>("RichTextContent") .AddModelBoundView <ImageTeaser>("ImageTeaser") .AddModelBoundView <VideoTeaser>("VideoTeaser") .AddPartialView("ColumnContainer") .AddPartialView("PageOverviewPanel"); return(options); }
public static RenderingEngineOptions AddFeatureBasicContent(this RenderingEngineOptions options) { options.AddModelBoundView <AnnouncementBar>("AnnouncementBar") .AddModelBoundView <HalfWidthBanner>("HalfWidthBanner") .AddModelBoundView <ContentList>("ContentList") .AddModelBoundView <RichTextContent>("RichTextContent") .AddModelBoundView <RichTextContent>("SugconRichText") .AddModelBoundView <ImageTeaser>("ImageTeaser") .AddModelBoundView <VideoTeaser>("VideoTeaser") .AddModelBoundView <EmbedContent>("EmbedContent") .AddPartialView("ColumnContainer") .AddPartialView("PageOverviewPanel") .AddModelBoundView <HeroBig>("HeroBig") .AddModelBoundView <HeroMedium>("HeroMedium") .AddModelBoundView <HeroMediumWithLink>("HeroMediumWithLink") .AddModelBoundView <SugconHero>("SugconHero"); return(options); }
public static RenderingEngineOptions AddFeature$moduleName$(this RenderingEngineOptions options) { /* * options.AddModelBoundView<MyModel>("MyView"); */ return(options);
public static RenderingEngineOptions AddFeatureSocial(this RenderingEngineOptions options) { options.AddModelBoundView <Rss>("Rss"); return(options); }
public static RenderingEngineOptions AddFeatureNavigation(this RenderingEngineOptions options) { options.AddModelBoundView<Header>("Header") .AddModelBoundView<Footer>("Footer"); return options; }
public static RenderingEngineOptions AddFoundationPeople(this RenderingEngineOptions options) { options.AddViewComponent("GraphQLPeopleList", "GraphQLPeopleList"); return(options); }