I have following this YouTube https://www.youtube.com/watch?v=XNQGsr9_34A&t=17sBut having issues since some of the items were deprecated.So here is the updated version. Installed thisgloballyPS D:\Sitecore\Headless> npm install -g npm@10.2.4 Tried to do this (it is deprecated)PS D:\Sitecore\Headless> jss create jss-react-sample react instead do thisnpm init sitecore-jss react it will take you through the parameters. Below that screen…
BYTE POST 23: Use ItemUrlBuilder instead of LinkProvider
In Sitecore pre Sitecore 9, you can use the LinkProvider to create url for SItecore items. It also allowed you to customize how url are generated and how it should render on website. Sitecore 9 and up uses ItemUrlBuilder. It supports both standard MVC and headless api driven sites.
BYTE POST 22: Login with Azure AD for Sitecore
To login to Sitecore using Azure AD you need to do the following… Go to.“c:\inetpub\wwwroot\[your instance folder]\Sitecore\Sitecore.Plugin.IdentityProvider.AzureAd\config\Sitecore.Plugin.IdentityProvider.AzureAd.config” Under AzureAd node set Enable to true. Provide your ClientId and TenantId from Azure. Default Claim is Email. If you need to change that, you can change it here too. You also need to map claims with Sitecore…
BYTE POST 21: Do not log on ServiceConfigurator
If you are trying to register dependency by using a class that is using IServiceConfigurator, do not try to log message in the Configure method. It will throw a Read write locking error. Example
Building Secure Sitecore Forms with reCAPTCHA v3
As online attacks continue to grow more sophisticated, organizations must consider implementing additional security measures to protect against them. For the Sitecore platform, the reCAPTCHA v3 feature can be implemented in Sitecore Forms to provide an extra layer of security for form submissions. I had to work on this recently. What is reCAPTCHA v3? reCAPTCHA…
BYTE POST 20 : Personalized content on a variable
Yes, you can use personalization to show different content to different audience or different content to people from different country.
BYTE Post 19 : Oh Boy! That Robot Detection
Are you using Sitecore Forms? Don’t rely on Robot Detection to be able to filter out Spams. It doesn’t. Use reCaptcha or something similar or you can create custom components. Robot detection will filter about 50%-60% but you will still get a lot of junk emails.
BYTE post 18: Rendering Variant
We use rendering variant so they can be used across many pages and to create consistent look and feel for a site. Also you can configure it for different devices and screen sizes and resolution.
BYTE Post 17: Use Sitecore Forms Extensions for additional features
You should use the Sitecore Forms Extensions for added feature. Like ShowFormPage, RawHTML, HiddenField… and more Here is the link for the Sitecore Forms Extension Check it out.
BYTE Post 16: Insert option
In Sitecore, the “Insert option” allows you to create new items within a particular item or folder. It adds a new child item to the existing parent item. When you select “Insert” from the content editor, you can choose from a list of templates that determine the type of item you want to create, such…