Posts

Showing posts with the label Sitecore SXA

Sitecore scriban for language dropdown

 We using scriban template to load language selector for the website , as not using out of box SXA language selector, we need more control from content author side. We have template with language multilist field , so that the content author have control to select or deselect the languages as per their wish. Scriban template to load language selector: Loop through all the languages content author selected from the field " Site Languages " and compare with the context language to make it as active language Url will be dynamic based on the language   <ul>        {{ for languages in (sc_followmany i_datasource "Site Languages"  )  }}              {{ itemLanguage=(sc_field  languages 'Regional Iso Code') }}              {{itemLanguage=(itemLanguage | string.downcase)}}       ...

SXA Showcase site with all components used

Image
I was searching online to find any samples for SXA components usage, but I come know there is already a site implemented using almost all the SXA components, and this site is called SXA Showcase. We can find this site from the following url ( https://github.com/Cognifide/Sitecore.XA.Showcase ) and download its source code to local and get your hands dirty J Steps to configure this site to local: ·          Install Plain Vanilla sitecore instance ·          Install SXA and Sitecore Powershell ·          Open the source code in Visual studio and restore all nuget packages that were missing ·          Finally update the unicorn contents serialized path to your physical drive path where you have downloaded the source code in Sitecore.XA.Project.Showcase.User.config file. Example : C:\SXAProject\SXA showc...