Visual Studio and Sitecore Rocks
You use Sitecore Rocks to develop exclusively for SPEAK applications. You cannot use the Content Editor or other related tools. This topic explains how to get started using Sitecore Rocks for SPEAK development.
Sitecore Rocks is a plugin for Visual Studio that you can download. Sitecore Rocks is free, and it is useful for many other Sitecore development tasks.
If you need to connect a SPEAK solution to a Visual Studio project (for example, in order to write server-side C# code), you need both Visual Studio and the plug-in version. If not, you can use the stand-alone version of Sitecore Rocks.
You can use either version of Sitecore Rocks for the following:
Create a connection to a Sitecore installation
If you have a Sitecore installation on your local computer, you must create a connection to the installation before you can use Sitecore Rocks to access it.
You can install Sitecore in different ways. Some third-party automated installers set up a connection and server components as part of the installation so that you do not have to go through the following connection procedure.
To create a connection to a Sitecore installation:
-
In Sitecore Rocks, in Sitecore Explorer, right-click
Connections
. -
In the Connection dialog box, in the Host Name field, select the Sitecore installation, and then click OK.
-
If this dialog appears, click Yes:
-
In the Update Server Components dialog, click Update All:
You can now explore a Sitecore installation with the Sitecore Explorer:
Sitecore is located in the core
database. The client
folder contains the following folders:
-
Speak – the SPEAK core libraries
-
Your Apps – where you can place your own SPEAK applications
-
Applications – contains Sitecore-developed SPEAK applications
-
Business Component Library and Services – contains SPEAK components
Create a SPEAK page
To create a very simple SPEAK page:
-
Right-click the
Your Apps
folder and click Add, New Item. -
In the Add New Item dialog, select an item template, enter a name for your item, and then click OK:
Sitecore Rocks creates a page definition item:
-
Right-click the item and click Tasks, Design Layout.
-
In the Browse dialog, select a SPEAK layout.
-
In the layout designer, click Add Rendering.
-
Add these two SPEAK components:
-
PageCode
-
Text
-
-
Double-click the Text component and in the Edit Rendering Properties dialog, specify the properties like this:
-
Click Close, and then click File, Save.
You have now created a very simple SPEAK page, which looks like something like this in a browser: