MarkvanAalst
blogging about .Net and Sitecore development
I am a .Net Software Developer currently working at Evident Interactive in the Netherlands. Specialized in the Sitecore Content Management System. Besides that I build custom Asp.Net applications and I love to play around with all kinds of web technologies in my spare time.
1st
JUL
Sitecore 6 released
Posted by admin under Sitecore, Sitecore 6
Yesterday the people at Sitecore released the new version of their CMS. Sitecore 6 (previously called “Crestone”) has lots of improvements for either the end user as for dsevelopers.
A few improvements are:
- Inline editing for editors
- .Net 2.0 Memebership support
- New and faster Content Editor
- New data types
- The new Page editor
and much, much more.
For a complete list the documentation team has released an “What’s New” document. You can find it on SDN5 here
More information involving enhancements can be find at the documentation are of SDN5.
13th
MAY
Copy & Paste Layout Settings
Posted by admin under Sitecore
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.
13th
Sitecore Validation Rules
Posted by admin under Sitecore
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
13th
Rich Text Editor
Posted by admin under Sitecore
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”

21st
APR
Dynamic load where parameters for linqDatasource
Posted by admin under .Net, C#, linq
When using an Linq Datasource (linq to sql) for a datagrid (Gridview, ListView, etc) you don’t always want all rows from a table. To exclute data you can use the WhereParameters to add an where statement to your DataSource.
You can do limited where statements with the Visual Studio Wizards. When you need more than a limited statement you can dynamicly create an Parameter to add to your Linq DataSource.
The following examples shows how to filter the Linq Datasource that recovers all rows from the Post table and filters them on the BlogId. The BlogManager.CurrentBlogId gets the blog GUID from the Session.
[code:c#]
Parameter whereparam = new Parameter();
whereparam.Name = “BlogId”;
whereparam.DefaultValue = BlogManager.CurrentBlogId.ToString();
whereparam.Type = TypeCode.Object;
linqDataSource.WhereParameters.Add(whereparam);
linqDataSource.Where = “BlogId == Guid(@BlogId)“;
[/code]
You convert the @BlogId (string) to a Guid In the linqDataSource.Where property otherwise you get the following error:
Operator ‘==’ incompatible with operand types ‘Guid’ and ‘String’
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Web.Query.Dynamic.ParseException: Operator ‘==’ incompatible with operand types ‘Guid’ and ‘String’