Sunday, 27 August 2017

Creating template with sitecore rocks

It's easy and fast with rocks to create items.

Let's start with creating Template, here attaching screenshots and pointing steps to create template please check with these:

Step.1
Go to Master Database (here i scoped to master database, that's why only master database is getting appear on the tree).
Go to template at /sitecore/template after this go to the path/directory where we wants to create template(template/sample)





Right click to Sample Template Folder(sitecore/template/sample) select "New Template"


After this give the template name.
If required then create standard value (but it's good and best practices to create standard value while template creation)
After this inherited with templates to use the fields of another templates. By the ways default base template "Standard template" is already inherited to newly created template.

We can add more template while inheriting or can also remove templates from inheritance.

After inheriting more than two template we can set their position by up and down arrow.



After successfully giving property to template now it's time to add field section and field to the template.



 Congrats template has been now created.

Saturday, 26 August 2017

Creating connection with Sitecore Rocks

To create connection Sitecore Rocks with Sitecore Instance

First you should have Sitecore Rocks tool/extension installed in your Visual Studio, if not installed then please check with my previous blog that How to Install Sitecore Rocks with Visual Studio

After the Successfully Installation with Sitecore Rocks, now it's time to create connection with Sitecore instance.


1. On the top of the Solution Sitecore Tab is getting displayed click on that tab and select "New Connection"



2. Fill the Host Name, Sitecore Connection Credential and wwwroot sitecore instance path these three fields are required to create connection and that is required for the fiirst time.




3. After this test that connection is created or not? And if connection will created then you will get "Yes It's work" success message.



4. Now click OK twice and after this select Sitecore Explorer.


@Note: One important thing is always scope to the project's database where you are going to work. Like for development most of the time will work on the master database



You can also scope to the content/rendering/template level as per your requirements, it will reduce the chance of getting mistake.