Saturday, February 27, 2016

Step to install Mongodb

Step to install Mongodb:
1.  Install the mongo db by clicking on “mongodb-win32-x86_64-2008plus-2.6.3-signed.exe”
2. create “MongoDB” folder in D:\ drive.
3. Create two folders named Data and Log within MongoDB folder.
4. Create Mongo.log file in Log Folder.
5. Create “mongodbconfig.cfg” file in D:\ MongoDB floder.
6. run the below command
C:\Program Files\MongoDB\bin\mongod.exe --config "D:\MongoDB\Mongodbconfig.cfg" –install
7. go to services.msc and start the mongodb service.

That’s it. Mongo db is installed and started.

Validation:


INSTALL MONGODB Resources:

Tuesday, September 29, 2015

Field’s raw value in Sitecore

A field's raw value is something like what the data is stored in underlying database.







You will not find any difference for single line text's raw and rendered value but will find difference between link,image etc raw and rendered value. Please see the above screenshot for raw and rendered value of a image. Basically the raw value of the image is XML.

Monday, September 28, 2015

Easiest way to update Admin password to b using SQL script in Sitecore

You need to run below SQL query in core database and that will update your default admin password to b

UPDATE [aspnet_Membership] SET Password='qOvF8m8F2IcWMvfOBjJYHmfLABc='
WHERE UserId IN (SELECT UserId FROM [aspnet_Users] WHERE UserName = 'sitecore\Admin')

Sunday, September 27, 2015

Simple OOPs concept in Sitecore

A picture is worth a thousand words


How to open Developer Center in Sitecore 8.0

1. Login to Sitecore Instance. Suppose your Sitecore instance Name is sitecore8
2. Open http://sitecore8/sitecore/shell/default.aspx?xmlcontrol=IDE
3. Developer Center will open

Very simple way to configure multiple CD server in your project

Content delivery server makes your web content available to your website visitors. You can configure n number of content delivery servers for improved scalability and better performance. If you expect to have high volume of visitors or to configure servers in different geographic locations, you can arrange CD servers into clusters.
Please find the below steps to configure CD server. We have configurated 3 CD server in localhost and datasource is same but you can define different datasource.This is just showing how to configure Multiple CD server.

1.ConnectionStrings.config:
Just copy the web database connection string 3 times like the below image and name it like "web1","web2","web3". Here all the server is same but you can mention different name for true configuration of CD server for dev or preprod or for production.


2.web.config:
Copy the settings section 3 times in web.config and name it "web1","web2","web3" like we have defined the name in ConnectionStrings.config file. Please see the below screenshot.

3.Validation:
1. Login to Sitecore
2. Click on Database selector and you will find 3 web database like the below image.










Sitecore pipeline

Sitecore pipeline consists of sequence of processor. When a pipeline is invoked, the processor within that pipeline are running in order.
A processor is nothing but .NET class that implements a method.

We can find Sitecore pipeline within web.config file or may be in patch file. If you have a series of tasks, which need to be performed to accomplish a task, then a pipeline might be the best way to go ahead. Most of the Sitecore functionality are controlled by Sitecore pipeline. In web.config file you will find a number of pipeline. Those pipeline are default pipeline from Sitecore. But you can write your own pipeline to accomplish a task.

Pipeline defined in web.config file



Pipeline contains class name with namespace and assembly name.Below is the "CheckLayout" is class name and "Sitecore.Kernel" is assembly name.

Sitecore contains more than 140 pipelines and each new version contains more pipeline.