Jasinski Technical Wiki

Navigation

Home Page
Index
All Pages

Quick Search
»
Advanced Search »

Contributor Links

Create a new Page
Administration
File Management
Login/Logout
Your Profile

Other Wiki Sections

Software

PoweredBy

Custom Editors - Sitecore

RSS
Modified on Thu, Aug 02, 2012, 12:54 PM by Administrator Categorized as Sitecore

Overview

This article walks through how to create a custom item editor in Sitecore.

Procedure

Master Database

1. Create a content item somewhere under /sitecore/Content in the usual way: with layout and sublayout, and specifying the Presentation Details.

2. Grant read access to the administrative users (e.g., sitecore\admin) and roles that will need to use the content editor page

3. Publish the item, as well as its layouts and sublayouts.

Core Database

4. Switch to the Core database

5. Within Content Editor, navigate to /sitecore/content/Applications/Content Editor/Editors and create a new folder to hold your custom editor. Naming it according to your company or project is recommended.

6. Within the new folder, create a new items based on the /sitecore/templates/Sitecore Client/Content editor/Editor template.

7. Fill in the following fields, all of which are in the Data section

FieldMeaning
HeaderThe text that ends up on the tab
UrlThe full Sitecore path to the item
RefreshOnShowAlways select this

Master Database

8. Assign the editor: on either the item of interest or the standard values of a template, within the Appearance section, specify the new editor in the Editors field.

Coding the Editor

Coding the editor is the same as with any Sitecore coding with one exception. The current item is determined from the query string, as follows.

var contextItem = Sitecore.Context.Database.GetItem(Request.QueryString["id"]);

ScrewTurn Wiki version 3.0.1.400. Some of the icons created by FamFamFam. Except where noted, all contents Copyright © 1999-2018, Patrick Jasinski.