Sitecore Interview questions asked to me interviews November 2021

Prem Murmu on 12/14/2021 1:22:54 PM

1. What is sitecore template and its type?

A template is an item that defines both the structure and behavior of other items.

There are few templates types in sitecore as follow:

Data template: It defines fields used to store or to control how data is entered. They determine the exact field sections, field types, and field names that make up each item, like Page  Template,Data source template, Parameter template

Command template: It allow you to insert items using logic rather than a predefined structure.

Branch template: It is used to create the set of items rather than single item.


2. How to remove the space and  dashes from url?

Ans:

1. We can use the config node encodeNameReplacements  in sitecore.config file

and define the character replacement

<encodeNameReplacements>

  <replace mode="on" find="&amp;" replaceWith=",-a-," />

  <replace mode="on" find="?" replaceWith=",-q-," />

  <replace mode="on" find="/" replaceWith=",-s-," />

  <replace mode="on" find="*" replaceWith=",-w-," />

  <replace mode="on" find="." replaceWith=",-d-," />

  <replace mode="on" find=":" replaceWith=",-c-," />

</encodeNameReplacements>



2. We can resolve by overriding linkprovider in sitecore like below:

 Public class CustomUrl: linkprovider

{

public override string GetItemUrl( Item item, UrlOptions options )

{

// We can write logic to remove the dashes from URL

// We can write logic to enable language in Url

// We can write anything related to URLs

}

}


3. How to handle the 404  Error in Sitecore?

Ans:

1. We can configure the item itemnotfoundurl or layoutnotfound setting not in sitecore.config.

<setting name="ItemNotFoundUrl" value=" /sitecore/content/ Home/ItemNotFound" />

2. We can resolve using htttprequestbegin pipeline by overidding httprequestprocessor.


4. What is helix principle in sitecore?

Ans:

Sitecore helix is the set of principles & patterns or guidlines and a component-based or modular architecture that provides

 simplicity,

 Extensibility ,

 boosts reusability ,

 and speed of development or technical Debt . 


5. What is scriban in Sitecore sxa ?

6. What is rendering variant in Sitecore sxa ?

7. What is theme in Sitecore sxa ?

8. What is use of the Creative exchange ?

10.What is make mulitlist editable?

11. What are Versioned vs Shared vs Unversioned fields in Sitecore?


0 Comments on this post

Comments(0)||Login to Comments



I've Been Vaccinated Wristband




afforable web hosting plans
Reliable Security & High Speed web hosting  plans
Microsoft Surface Book 3
InterServer Web Hosting and VPS
free .com domain and best cheap hosting plans
Premium Subscription Offer
  • see more..