Multisite Configuration

Image Posted on Updated on

Today’s post I will try to show you how you can achieve a Multisite configuration on Sitecore. 1. Add Bindings to your existing website on IIS. (Click Bindings in the Edit Site panel on the Right side) multisite configuration bindings

Click Add button, to add new bindings:
multisite configuration add bindings

Put your custom Host name then press OK:
multisite configuration add bindings name

multisite configuration added

You will see this new Browse Website item on the right side of you IIS.
multisite configuration browse

If you wish to check if it’s working, I will assure you that it’s not. We need to add a host name for our custom URL on the C:\Windows\System32\drivers\etc\host file

multisite configuration add hostname
Then Add your website:
multisite configuration content editor

At this point we need to add the website on the Sitedefinition.config under Includes folder of your Instance multisite configuration sitecoredefinition

By default, the SiteDefinition.config have an .example  extension which makes the configuration file not working. To make it work let’s change the file from SiteDefinition.config.example to SiteDefinition.config, then open the file.

multisite configuration sitecoredefinition default

Lets change the site name “mysite” to “website1″ and the startItem=”/home” to startItem=”website1″ (This will point the website1 item on the content editor). The result should be like this:

multisite configuration sitecoredefinition website1

After you follow all the steps provided. You can check now your custom url: multisite configuration www.website1dotcom

You can see that the have no layout. Just add a presentation layer for this to see your desired result.


HTTP Error 500.19 – Internal Server Error

Image Posted on Updated on

When you have encountered this error: HTTP Error 500.19 - Internal Server Error

Try this: (Note: You need to run as administrator)

HTTP Error 500.19 - Internal Server Error - cmd_repaire_dotnetframework

When do you use Static and Dynamic sources

Image Posted on Updated on

Static Source

You should use static sources when you want to include all the items or files that stored under a specific node or folder in the content tree or if you only want to include a specific items or files.

Dynamic Source

When the items or files that you want to include cannot be easily selected, for example, if you want to include everything created after a certain date.

You can refer to Sitecore Package Designer guide for more information and tricks:

When do you use Static and Dynamic sources

Adding tooltip for tempalates fields

Image Posted on Updated on

You can find the help button under Configure tab -> Appearance panel -> Help Button adding help for tempalates fields Pop up after you click the help button adding help for tempalates fields - help pop up   Once pop up appeared, you can put a tool tip or short description then press “OK”. The result will be like the image below when clicking the _standard values. adding help for tempalates fields - result

Validation Rules – Define Min and Max Length for Field Type

Image Posted on Updated on

In this post, I’ll try to show you how to set up the field validation rules in Sitecore CMS User Interface. Once you’ve created a template under Sitecore Template Manager, you can define the Min and Max Length of the field.

Validation Rule

If you want a custom length for Min and Max Length of the field. Just create an additional rule on the System -> Settings -> Validation Rules -> Field Rules -> Sample. You can find the template for creating additional validation on: /sitecore/templates/System/Validation/Validation Rule

add additional custom validation rule

Showing Hidden items

Image Posted on Updated on

Hidden items don’t appear on Content Editor specially if they don’t have access to view hidden items.  If you have permissions to display hidden items just follow the steps below:

Showing Hidden items

1. Open the Content Editor

2. On the Ribbon, Click View Tab

3. In the View group, add check mark on the Hidden Items checkbox