Thursday, 23 November 2017

Limit number of Items for multilist with sitecore

sitecore-config

Today got an scenario, where someone wants to limit the number of items for multi list field.

Really I had no idea that time so started r&d, and yes found that there is a setting into the sitecore.config. And the big thanks to Sitecore that already handled all the things only we need to give limitation.

By default there are total 100 number of items are allowed to multi list field.

<setting name="Query.MaxItems" value="100">

and if wanted to list all of the items into the multi list field then we can set value as 0 (i.e. value="0"), but it will impact to the performance.



Have a great day!!!

Friday, 17 November 2017

3A Approach with Sitecore Componentization

Before starting development with Sitecore, if we have any prior idea about the components then it will save our times while development and as well as will be full proof.
As per my previous projects experience, always followed the componentization trick and result was great .
Generally in normal project we have around 10+ components.
And believe me once our componentization documentation is ready you feel like everything is done just need to do implementation thing. Because after this we are able to identify which components is getting repeated on which page and after that will have to apply only that rendering on particular pages.
So let's start focusing on creating Componentization Document then next jump to development.
For this Always following the 3A Approach:
1. Authorization
2. Accessibility
3. Action
This 3A magical things helped me a lot. Here I am taking an example of e-commerce site (AMAZON) for reference, please go with attached image first after parallely visit on https://www.amazon.in/ (for reference) can easily see that on the attached image things are in form of component like:
sitecore-components

On Home Page we have:
Header
Logo
Navigation
Search

Body
Carousel
Image Slider
Image Title Description Widget
Image Title Widget
Title Description Widget
Back To Top Widget
Image Links Widget
Teaser(Offer) Widget

Footer
Footer Links
Copyright

here on the homepage components are getting reused just by changing their data source. And if we jump to another page will see their header and Footer components are same just their body part will be little bit changed with some of the new/reused components.

For Proper Documentation, I shared sample Componentization Documentation, Please have a look.

Any feedback/Suggestions/Advice are welcome!!!