Archive for May, 2008

Copy & Paste Layout Settings

While developing a Sitecore website there are lots of situations where you want multiple items to have the same Presentation Settings (renderings/sublayouts/layout). The ideal case is that your item Masters have these settings included but sometimes this isn’t the case.

You can copy and paste the settings all at one time this way:

1. Navigate to the source item in the Content Editor (or Template Manager)

2. On the ‘View’ Ribbon (Menu tab on top of the screen) select Standard Fields and Raw Values

3. Copy the (raw) Renderings field value (in the layout section of the content of the item)

4. Paste it into the destination item Renderings Field.

5. Disable Raw values and standard fields if necessary.

There also is a (unsupported) Sitecore Module for this action. Check it out Layout copy pastehere.

Sitecore Validation Rules

In Sitecore you can use validation rules. By default there are three validations rules on each template:

  • Is Integer
  • Max Length 40
  • Requirer

You can modify or add new rules in the sitecore\system\settings\validation\field section in the content editor

With the use of an multilist you can set the rules for your template.

ATTENTION: Validation rules are already built in for version 5.3.1 but you can’t use them. Therefore you need to upgrade to version 5.3.2, which costs about an our. You can use regular expressions in version 5.3.1

Rich Text Editor

One of the most annoying things about Sitecore is that the Rich Text Editor needs to be opent in an seperate web page dialog.

But you can customize this behavior!

  • Go to the Control Panel > Preferences > Change Your Application Options
  • Tab Rich Text Editor
  • Select editable

You see that the Content Editor got expanded with the tab “Rich Text”