Wednesday, 29 November 2017

How to Request: Free Licence to Getting Started with Sitecore

sitecore-free-licence



Hi all,

I was surfing on Sitecore official site as usual, and believe me get one offer. So I wanted to share with all that:

If any developer wanted to start with Sitecore and they don't have licence, then they don't have to worry more.

Now Sitecore started giving free Sitecore licence for developer, if raise access for free licence.

Below is the Request_to_Raise_For_Sitecore_Free_Licence

With the help of Sitecore free licence can practice with:


  • Habitat Project on Helix design Principle which is open source project, here is the Habitat_Github_Repo

So start developing with Sitecore and Welcome to New Era.

Friday, 24 November 2017

Sitecore Licence Details Option and Login Screen Image

sitecore-login-screen

Actually I was just looking login page's code and found that we can also check Licence details from Login Screen without logging.


From sitecore.config we just need to make the value="true" for setting name="Login.DisableLicenseInfo" i.e.

<setting name="Login.DisableLicenseInfo" value="true">

and below is the screen after making the changes.

sitecore-login-licence-details-options

Here may be noticed that login screen background image has been changed.

Yes also did this one, there is a change from sitecore.config as

<setting name="Login.BackgroundImageUrl" value="/sitecore/login/drop_wallpaper.jpg">


Changed with

<setting name=Login.BackgroundImageUrl" value="/sitecore/shell/themes/Backgrounds/Building.jpg">

Have a Good Day!!!

limit search result from Sitecore Content Tree

sitecore-search

Obviously it's not big issue, but sometime clients asking to limit search result while searching any Sitecore item from Content Tree.

we just need to change limit from setting to display search result.
So let's start

It's same as previously we did for limiting number of items for multi list field. from sitecore.config we need to change the value for setting for Search.ContentTreeSearch.MaxResults.

By default 25 results are listed when we search any items from content tree, and we can decrease the results list and also can increase.

<setting name="Search.ContentTreeSearch.MaxResults" value="25">

And if wanted to list all the searched result then set value as 0 (But suppose a scenario, if we have 1000+ items for searched item then it may take time or may impact to performance).

Let's take an example:

Please have a look


Sitecore config changes:

sitecore-config

Sitecore Content Tree:

sitecore-search-result


Have a Good Day!!!



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!!!

Tuesday, 7 November 2017

Handling 404 Error Page with Sitecore

Wanna create your own PageNotFound with Sitecore?

Suppose a scenario, where an end user is hitting wrong item and he is getting some technical error (which can not be generally understandable by End User), and you wanted to show him your own page.

Then I would like to say it's cool and quick change with Sitecore, we just need to make an entry into Sitecore Config(<instance name>\Website\App_Config\Sitecore.config) and have to create your own aspx file that's it.


Let's start a quick demo step by step:

1.  First created PageNotFound.aspx file and put it at location [<Instance Name>\Website\PageNotFound.aspx]


2. Second after this made entries to Sitecore.Config [<instance name>\Website\App_Config\Sitecore.config]


404-errorhandling-config

That's It....

custom-404-page-sitecore


@Note: Actually here we are redirecting PageNotFound: 404 Error type with Permanent Redirect: 302 by creating our own user friendly Page.

Please let me know if any feedback or suggestions.