﻿<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Mark van Aalst &#187; Mark</title>
	<atom:link href="http://www.markvanaalst.net/author/admin/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.markvanaalst.net</link>
	<description>blogging about ASP.Net and web development related techniques</description>
	<lastBuildDate>Thu, 18 Feb 2010 18:12:20 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Using JQuery in custom fields</title>
		<link>http://www.markvanaalst.net/2010/02/18/using-jquery-in-custom-fields/</link>
		<comments>http://www.markvanaalst.net/2010/02/18/using-jquery-in-custom-fields/#comments</comments>
		<pubDate>Thu, 18 Feb 2010 17:27:38 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[Custom field]]></category>
		<category><![CDATA[Sitecore]]></category>
		<category><![CDATA[JQuery]]></category>

		<guid isPermaLink="false">http://www.markvanaalst.net/?p=99</guid>
		<description><![CDATA[At the moment I&#8217;m creating a custom field for tagging content items. I prototyped my custom field in html using JQuery. But when I wanted to convert this to the actual custom field I ran into a problem. As you might know Sitecore uses the Prototype library for all of it&#8217;s javascript. And prototype uses [...]]]></description>
			<content:encoded><![CDATA[<p>At the moment I&#8217;m creating a custom field for tagging content items. I prototyped my custom field in html using JQuery. But when I wanted to convert this to the actual custom field I ran into a problem. As you might know Sitecore uses the Prototype library for all of it&#8217;s javascript. And prototype uses the same dollar sign for all of its functions and variables as JQuery does. But JQuery provides a <a href="http://api.jquery.com/jQuery.noConflict/">noConflict</a> function where you can reassign the default $.</p>
<p>But then came the next challenge. I needed to use the noConflict function before all other javascript was called. Luckally I remembered that I have seen it before in other custom fields that are on the <a href="http://trac.sitecore.net/Index/">Shared Source</a> environment. So I started browsing the source code of Alexey Rusakov&#8217;s project (<a href="http://trac.sitecore.net/FieldTypes/">Sitecore Fieldtypes</a>) and I found the <a href="http://svn.sitecore.net/FieldTypes/trunk/sitecore%20modules/Outercore.FieldTypes/Common/InjectScripts.cs">InjectScripts</a> class which provides an option to add HTML to the section of the Content Editor. There I just added a reference to my JQuery library and off course calling the .noConflict funtion.</p>
<pre class="brush: csharp">

namespace Sitecore.SharedSource.Taxonomy
{
class AddScripts
{
public void Process(PipelineArgs args)
{
if (Sitecore.Context.ClientPage.IsEvent)
return;

HttpContext context = HttpContext.Current;
if (context == null)
return;

Page page = context.Handler as Page;
if (page == null)
return;

Assert.IsNotNull(page.Header, &quot;Content Editor &lt;head&gt; tag is missing runat=&#039;value&#039;&quot;);

string[] scripts = new[]
{
&quot;/sitecore modules/Shell/Taxonomy/jquery-1.4.1.min.js&quot;
};

foreach (string script in scripts)
{
page.Header.Controls.Add(new LiteralControl(&quot;&lt;script type=&#039;text/javascript&#039; language=&#039;javascript&#039; src=&#039;{0}&#039;&gt;&lt;/script&gt;&quot;.FormatWith(script)));
page.Header.Controls.Add(new LiteralControl(&quot;&lt;script type=\&quot;text/javascript\&quot;&gt;$.noConflict();&lt;/script&gt;&quot;));
}
}

}
}
</pre>
<p>So now I can call my JQuery by using &#8220;jQuery&#8221; in stead of &#8220;$&#8221; and the field works.</p>
<p>In my opinion this is just an example of how the Shared Source environment can help you. So if you have created a module, field or any thing else please put it on the Shared Source environment so others can benefit from it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.markvanaalst.net/2010/02/18/using-jquery-in-custom-fields/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Restricting FieldEditor to specific template based items</title>
		<link>http://www.markvanaalst.net/2010/02/17/restricting-fieldeditor-to-specific-template-based-items/</link>
		<comments>http://www.markvanaalst.net/2010/02/17/restricting-fieldeditor-to-specific-template-based-items/#comments</comments>
		<pubDate>Wed, 17 Feb 2010 11:28:04 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[Sitecore]]></category>
		<category><![CDATA[FieldEditor]]></category>

		<guid isPermaLink="false">http://www.markvanaalst.net/?p=94</guid>
		<description><![CDATA[In Sitecore 6.2 it is possible to integrate FieldEditors. These are command which enables users edit item settings when they work in the page editor. Personally I think it is a great option when you want editors to only work within the Page Editor, and still let them edit settings. For the blog module that [...]]]></description>
			<content:encoded><![CDATA[<p>In Sitecore 6.2 it is possible to integrate FieldEditors. These are command which enables users edit item settings when they work in the page editor. Personally I think it is a great option when you want editors to only work within the Page Editor, and still let them edit settings.<br />
For the blog module that I created I implemented two FieldEditorCommands which let the user edit the blog and entry settings. When you use the default implementation as described in one of the cookbooks users can always click on the ribbon button regarding if the fields are on the currentitem. When those field don not exist on that item, they just get a empty popup.<br />
I decided to restrict the option only to items which are based on a certain template. You can do this the following way:<br />
You’ll need to override the Execute method in the your class (which overrides from Sitecore.Shell.Applications.WebEdit.Commands.FieldEditorCommand).</p>
<p>Then you isolate the function Context.ClientPage.Start in for instance an if statement.</p>
<p>Example:</p>
<pre class="brush: csharp">
if (context.Items[0].TemplateID == new ID(Settings.Default.EntryTemplateID))
{
Context.ClientPage.Start(this, &quot;StartFieldEditor&quot;, args);
}
else
{
Context.ClientPage.ClientResponse.Alert(&quot;Please select an entry first&quot;);
}
</pre>
<p>If anyone else has a better way to get the same results please let me know.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.markvanaalst.net/2010/02/17/restricting-fieldeditor-to-specific-template-based-items/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Blog module update</title>
		<link>http://www.markvanaalst.net/2009/11/27/blog-module-update/</link>
		<comments>http://www.markvanaalst.net/2009/11/27/blog-module-update/#comments</comments>
		<pubDate>Fri, 27 Nov 2009 09:08:57 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[Sitecore]]></category>

		<guid isPermaLink="false">http://www.markvanaalst.net/?p=90</guid>
		<description><![CDATA[This week I released the stable version of the EviBlog module. You can download the module from the Sitecore Shared Source. The module works on all Sitecore solutions based on version 6.2. The module now includes the following features: Inline Editing support Windows Live Writer integration Pingback RSS (using the Sitecore 6.2 Integrated RSS) Tagging [...]]]></description>
			<content:encoded><![CDATA[<p>This week I released the stable version of the EviBlog module. You can download the module from the <a href="http://trac.sitecore.net/EviBlog">Sitecore Shared Sourc</a>e. The module works on all Sitecore solutions based on version 6.2.</p>
<p>The module now includes the following features:</p>
<ul>
<li>Inline Editing support</li>
<li>Windows Live Writer integration</li>
<li>Pingback</li>
<li>RSS (using the Sitecore 6.2 Integrated RSS)</li>
<li>Tagging and tagcloud</li>
<li>Categories</li>
<li>Comments (you can disable per setting)</li>
<li>FieldEditors for blog and entry settings</li>
<li>Custom webcontrols for integrating your own theme</li>
</ul>
<p>The Shared Source coordinator Jimmie Overby created two video’s (<a href="http://www.youtube.com/watch?v=qe3Ppqkxhxw">1</a>, <a href="http://www.youtube.com/watch?v=XQUaXWTJyLs">2</a>) which shows you the most common use of the module. Currently I am writing some documentation about how to use the webcontrols in your own theme. With these webcontrols it’s quite easy to integrate the module within an existing Sitecore installation.</p>
<p>Please do not hesitate to use the Shared Source forum when you have questions about the module.<br />
<span id="more-90"></span></p>
<p><object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/qe3Ppqkxhxw&#038;hl=en_US&#038;fs=1&#038;"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/qe3Ppqkxhxw&#038;hl=en_US&#038;fs=1&#038;" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object></p>
<p><object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/XQUaXWTJyLs&#038;hl=en_US&#038;fs=1&#038;"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/XQUaXWTJyLs&#038;hl=en_US&#038;fs=1&#038;" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://www.markvanaalst.net/2009/11/27/blog-module-update/feed/</wfw:commentRss>
		<slash:comments>15</slash:comments>
		</item>
		<item>
		<title>New Sitecore 6 blog module released</title>
		<link>http://www.markvanaalst.net/2009/11/07/new-sitecore-6-blog-module-released/</link>
		<comments>http://www.markvanaalst.net/2009/11/07/new-sitecore-6-blog-module-released/#comments</comments>
		<pubDate>Fri, 06 Nov 2009 23:08:38 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[Sitecore]]></category>
		<category><![CDATA[blog module]]></category>
		<category><![CDATA[Sitecore 6]]></category>

		<guid isPermaLink="false">http://www.markvanaalst.net/?p=83</guid>
		<description><![CDATA[In the last couple of months I have been working on a new blog module for Sitecore 6.2. It started as a small module just for my own educational purpose but ended up as one of the largest modules I created. The module is a complete rewritten blog module, based upon the functionality of the [...]]]></description>
			<content:encoded><![CDATA[<p>In the last couple of months I have been working on a new blog module for Sitecore 6.2. It started as a small module just for my own educational purpose but ended up as one of the largest modules I created. The module is a complete rewritten blog module, based upon the functionality of the old 5.3 version. The new version supports inline editing, fieldeditors, webcontrols for custom themes and <a href="http://download.live.com/writer" target="_blank">Windows Live Writer</a> integration. This release includes two sample blogs. One with a standard theme and one custom theme which shows you how to use the custom webcontrols.</p>
<p><span style="text-decoration: underline;">List of features</span></p>
<ul>
<li>Windows Live Writer integration (MetaWeblog API)</li>
<li>Full frontend (inline) editing</li>
<li>Webedit ribbon (with fieldeditors)</li>
<li>CSS based themes</li>
<li>Custom themes possible (one demo included)</li>
<li>Custom webcontrols (with inline editing)</li>
<li>Comments</li>
<li>Tagging and a tagcloud</li>
<li>RSS Feeds</li>
</ul>
<p>At this moment the module in still in betá, and I would like to hear your feedback. You can use the comments or just send me a email (mark at evident.nl). When you encounter problems, found a bug or have any other kind of feedback please let me know and I will try to reply as soon as possible.</p>
<p>You can find the installation package and sources on the <a href="http://trac.sitecore.net/EviBlog" target="_blank">Shared Source environment</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.markvanaalst.net/2009/11/07/new-sitecore-6-blog-module-released/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Sitecore released version 6.2!</title>
		<link>http://www.markvanaalst.net/2009/10/21/sitecore-released-version-6-2/</link>
		<comments>http://www.markvanaalst.net/2009/10/21/sitecore-released-version-6-2/#comments</comments>
		<pubDate>Wed, 21 Oct 2009 19:11:33 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[Sitecore]]></category>

		<guid isPermaLink="false">http://www.markvanaalst.net/?p=80</guid>
		<description><![CDATA[Today Sitecore released version 6.2. According to the change log their are several new (cool) features. Sitecore client RSS feeds for items in workflows Built-in support for syndicating items using the RSS format. WebDAV support in the media library A new File Drop Area field type has been introduced A new Word Field has been [...]]]></description>
			<content:encoded><![CDATA[<p>Today Sitecore released version 6.2. According to the <a href="http://sdn.sitecore.net/Products/Sitecore%20V5/Sitecore%20CMS%206/ReleaseNotes/ChangeLog.aspx" target="_blank">change log</a> their are several new (cool) features.</p>
<ul>
<li>Sitecore client RSS feeds for items in workflows</li>
<li> Built-in support for syndicating items using the RSS format.</li>
<li> WebDAV support in the media library</li>
<li> A new File Drop Area field type has been introduced</li>
<li> A new Word Field has been introduced!</li>
<li> Analytics Oracle support</li>
<li> Improved IIS7 support</li>
<li> Sitecore&#8217;s theme icons are now stored in zip-files.</li>
<li> Sitecore is now distributed with a number of icons that are having a Windows 7-look instead of an XP-look.</li>
</ul>
<p>Besides that their are many improvements and fixes.</p>
<p>Go check it out! I&#8217;m installing it right now and gonna have a a look.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.markvanaalst.net/2009/10/21/sitecore-released-version-6-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sitecore roadmap</title>
		<link>http://www.markvanaalst.net/2009/10/20/sitecore-roadmap/</link>
		<comments>http://www.markvanaalst.net/2009/10/20/sitecore-roadmap/#comments</comments>
		<pubDate>Tue, 20 Oct 2009 21:42:58 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[SPN]]></category>
		<category><![CDATA[Sitecore]]></category>

		<guid isPermaLink="false">http://www.markvanaalst.net/?p=69</guid>
		<description><![CDATA[Tonight I was catching up with some RSS Feeds and Twitter messages, when I noticed that SPN (Sitecore Partner Network) is renewed. My compliments to the people behind the renewal, it looks so much better and it&#8217;s easier to find the information you&#8217;re looking for. Next one is SDN perhaps? I know I would appreciate [...]]]></description>
			<content:encoded><![CDATA[<p>Tonight I was catching up with some RSS Feeds and Twitter messages, when I noticed that <a href="http://spn.sitecore.net" target="_blank">SPN</a> (Sitecore Partner Network) is renewed. My compliments to the people behind the renewal, it looks so much better and it&#8217;s easier to find the information you&#8217;re looking for. Next one is <a href="http://sdn.sitecore.net" target="_blank">SDN</a> perhaps? I know I would appreciate it, and I think there are more people who would like it.</p>
<p>When I was crawling through the content of SPN I saw the <a href="http://spn.sitecore.net/Products/~/media/Files/Products/Sitecore_Roadmap%2010-09.ashx" target="_blank">roadmap</a>. Curious as I am I opened it to see if it was a different version than the the outdated one at the old SPN. I then saw that I it&#8217;s updated and has some real nice improvements.</p>
<p>Here are some</p>
<ul>
<li>Sitecore Client RSS feeds</li>
<li>WebDav</li>
<li>MS Word Fieldtype</li>
<li>Webforms 2.0</li>
<li>LINQ data abstraction</li>
<li>Re-factored publishing engine</li>
<li>Advanced clustering of any number of Production CMS Servers</li>
</ul>
<p>Take a look at the <a href="http://spn.sitecore.net/Products/~/media/Files/Products/Sitecore_Roadmap%2010-09.ashx" target="_blank">roadmap</a>, you will find more information there.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.markvanaalst.net/2009/10/20/sitecore-roadmap/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Creating a Item Editor</title>
		<link>http://www.markvanaalst.net/2009/08/19/creating-a-item-editor/</link>
		<comments>http://www.markvanaalst.net/2009/08/19/creating-a-item-editor/#comments</comments>
		<pubDate>Wed, 19 Aug 2009 11:55:03 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[Sitecore]]></category>
		<category><![CDATA[item editor]]></category>
		<category><![CDATA[User Interface]]></category>

		<guid isPermaLink="false">http://www.markvanaalst.net/?p=22</guid>
		<description><![CDATA[For a blog module that I am developing I wanted to create an custom item editor. As you might know those are the &#8220;tabs&#8221; in the Content Editor. 1. Create a aspx file for the item editor user interface. 2. Select the core database in the desktop mode 3. Open the Content Editor and go to [...]]]></description>
			<content:encoded><![CDATA[<p>For a blog module that I am developing I wanted to create an custom item editor. As you might know those are the &#8220;tabs&#8221; in the Content Editor.</p>
<p>1. Create a aspx file for the item editor user interface.<br />
2. Select the core database in the desktop mode<br />
3. Open the Content Editor and go to the following path /Sitecore/Content/Applications/Content Editor/Editors/Items.<br />
4. You can create an item editor using the /Sitecore Client/Content Editor/Editor data template.<br />
5. You can give your item editor a name using the header field in the data section.<br />
6. In the icon field you can enter a path to the icon.<br />
7. In the url field you need to fill in the url to the aspx file created in step 1<br />
8. Save the item.<br />
9. Switch back to the master database.</p>
<p><span id="more-22"></span></p>
<p>Now we have created the item and the user-interface for the Item Editor. The next step is to assign the item editor to a template.</p>
<p>10. You can do this by setting it on the standard values or a individual item. Open the item in the content editor or template manager.<br />
11 . Click on the configure tab, go to the appearance group and click the editor command. A dialog will appear.<br />
12. In this dialog you can select the item editor you want to use, using the arrows you can sort.<br />
13. Finally close the dialog and save and publish.</p>
<p>Now when you select a item based on this template you see a item editor in the content editor with the title you filled in. You can edit the item editor using normal ASP.Net controls. This is a great solution for creating custom reports. But when you want to create an real custom editor functionality, you would like to use the default save button of the content editor. I might be confusing for a end-user to have two save button in one screen.</p>
<p>Unfortunately, Sitecore provides no default solution for capturing that event. Thanks to Eugene Omelnitsky from <a href="http://support.sitecore.net" target="_blank">Sitecore Support</a> (for pointing me in the right direction) I found a solution. You can adapt to the Save event using javascript. I then used <a title="JQuery" href="http://www.jquery.com" target="_blank">JQuery</a> to do an ajax call to the server and execute my save method.</p>
<p>This is the Javascript function which captures the save event and triggers an ajax call to my page method.</p>
<pre class="brush: jscript">
&lt;script type=&quot;text/javascript&quot;&gt;
function scGetFrameValue(value, request)
{
if (request.parameters == &quot;contenteditor:save&quot; || request.parameters == &quot;item:save&quot;)
{
$.ajax({
type: &quot;POST&quot;,
url: &quot;EntryEditor.aspx/SaveItem&quot;,
data: &quot;{ e: &#039;&quot; + $(&#039;#EditorIntroduction&#039;).val() + &quot;&#039;, title: &#039;&quot; + $(&#039;#tbTitle&#039;).val() + &quot;&#039;, content: &#039;&quot; + $(&#039;#EditorContent&#039;).val() + &quot;&#039; }&quot;,
contentType: &quot;application/json; charset=utf-8&quot;,
dataType: &quot;json&quot;,
success: function(msg) {
alert(&quot;succes!&quot;);
}
});
}
}
&lt;/script&gt;
</pre>
<p>And this is the method that I use server side</p>
<pre class="brush: csharp">
[System.Web.Services.WebMethod]
public static void SaveItem(string entryid, string introduction, string content, string title)
{
Database master = Factory.GetDatabase(&quot;master&quot;);

Item currentItem = ItemManager.GetItem(new ID(entryid), Sitecore.Context.Language, Sitecore.Data.Version.Latest, master);
Entry currentEntry = new Entry(currentItem);

currentEntry.BeginEdit();
currentEntry.Title = title;
currentEntry.Introduction = introduction;
currentEntry.Text = content;
currentEntry.EndEdit();
}
</pre>
<p>The code above is not perfect, it needs a bit more flexibility but for testing purposes it works.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.markvanaalst.net/2009/08/19/creating-a-item-editor/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>New search for SDN</title>
		<link>http://www.markvanaalst.net/2009/08/13/new-search-for-sdn/</link>
		<comments>http://www.markvanaalst.net/2009/08/13/new-search-for-sdn/#comments</comments>
		<pubDate>Thu, 13 Aug 2009 11:47:02 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[Sitecore]]></category>
		<category><![CDATA[SDN]]></category>
		<category><![CDATA[search]]></category>

		<guid isPermaLink="false">http://www.markvanaalst.net/?p=59</guid>
		<description><![CDATA[I just noticed that Sitecore has greatly improved their search on SDN. You can now search through SDN, the shared source and Sitecore blogs.You even can filter your results by sdn sections, collections and datatypes. Only minor is that I can&#8217;t find a list of blogs they included in the search, so for that I [...]]]></description>
			<content:encoded><![CDATA[<p>I just noticed that Sitecore has greatly improved their <a href="http://sdn5.sitecore.net/searchresults.aspx?&amp;lcid=9&amp;q=&amp;t=120" target="_blank">search</a> on <a href="http://sdn.sitecore.net" target="_blank">SDN</a>. You can now search through SDN, the shared source and Sitecore blogs.You even can filter your results by sdn sections, collections and datatypes.</p>
<p><a href="http://www.markvanaalst.net/files/2009/08/sdn-search.jpg"><img class="alignnone size-full wp-image-60" title="sdn-search" src="http://www.markvanaalst.net/files/2009/08/sdn-search.jpg" alt="sdn-search" width="389" height="264" /></a></p>
<p>Only minor is that I can&#8217;t find a list of blogs they included in the search, so for that I will use my own <a href="http://www.google.com/coop/cse?cx=015305827533630957323:tnp7jv7rwps&amp;hl=nl" target="_blank">search</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.markvanaalst.net/2009/08/13/new-search-for-sdn/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Embedding video in Sitecore items</title>
		<link>http://www.markvanaalst.net/2009/08/07/embedding-video-in-sitecore-items/</link>
		<comments>http://www.markvanaalst.net/2009/08/07/embedding-video-in-sitecore-items/#comments</comments>
		<pubDate>Fri, 07 Aug 2009 12:26:33 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[Custom field]]></category>
		<category><![CDATA[Sitecore]]></category>
		<category><![CDATA[User Interface]]></category>
		<category><![CDATA[controls]]></category>
		<category><![CDATA[Sitecore 6]]></category>
		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://www.markvanaalst.net/?p=34</guid>
		<description><![CDATA[These days streaming video on the web is quite popular. In almost every project we do at Evident Interactive the customer wants to embed video in content items. Off course they can do that by copy-pasting the embedding code in a Sitecore field or in the rich-text editor. But that is not the most user-friendly [...]]]></description>
			<content:encoded><![CDATA[<p>These days streaming video on the web is quite popular. In almost every project we do at <a href="http://www.evident.nl" target="_blank">Evident Interactive</a> the customer wants to embed video in content items. Off course they can do that by copy-pasting the embedding code in a Sitecore field or in the rich-text editor. But that is not the most user-friendly method. I thought it would be nice if an end-user could just copy-paste the url of the page and let an custom control do the rest. So I created a custom field, webcontrol, some xsl extensions an a addition to the flashmanager. Let&#8217;s say that we want to embed this <a href="http://www.youtube.com/watch?v=MKPmrwGuEkQ" target="_blank">video</a> from YouTube. I go to the content editor and paste the url in a field of the type &#8220;Video Embed&#8221;.</p>
<p><img class="size-full wp-image-36" title="Custom field" src="http://www.markvanaalst.net/files/2009/08/video_field.jpg" alt="Custom field" width="393" height="63" /><br />
<span id="more-34"></span> When I want to double check if I pasted the correct url I can click preview. A popup appears with the embedded video.</p>
<p><img class="alignnone size-full wp-image-38" title="Preview" src="http://www.markvanaalst.net/files/2009/08/video_preview.jpg" alt="Preview" width="442" height="329" /></p>
<p>Then I can save my item and publish it to the web database. The only thing saved in Sitecore is the url to the page containing the video.</p>
<p>But sometimes you want to embed video in to an rich text field. For this I wrote an extension for the flashmanager. It works the same as the custom field, the only thing different is you get a preview inside the tab and the embed code will be copied to to rich-text editor value.</p>
<p><img class="alignnone size-full wp-image-37" title="video_flashmanager" src="http://www.markvanaalst.net/files/2009/08/video_flashmanager.jpg" alt="video_flashmanager" width="441" height="311" /></p>
<p>To show my video in the frontend of the site I need to add an custom control to my layout or sublayout. The custom control is included in the package.</p>
<p>You need to add a page directive to your layout or sublayout</p>
<pre class="brush: csharp">
&lt;%@ Register TagPrefix=&quot;video&quot; Namespace=&quot;Sitecore.SharedSource.VideoEmbed&quot; Assembly=&quot;VideoEmbed&quot; %&gt;
</pre>
<p>Then you can add the custom control. You can set the height and width of the embed code. When those are left blank a default size of 240 for the height and 320 for the width will be used.</p>
<pre class="brush: csharp">
&lt;video:EmbedVideo id=&quot;VideoEmbed1&quot; runat=&quot;server&quot; Field=&quot;Video&quot; Height=&quot;240&quot; Width=&quot;320&quot;&gt;&lt;/video:EmbedVideo&gt;
</pre>
<p>And here is the result of the control</p>
<p><img class="alignnone size-full wp-image-44" title="Frontend" src="http://www.markvanaalst.net/files/2009/08/video_frontend.jpg" alt="Frontend" width="419" height="500" /></p>
<p>At the moment the solution works for YouTube, Vimeo and Google Video (international and dutch version). I will contribute this to the Shared Source section of Sitecore as soon as <a href="http://sharesitecore.wordpress.com/" target="_blank">Jimmie</a> is back from holiday and can give me access.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.markvanaalst.net/2009/08/07/embedding-video-in-sitecore-items/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A fresh start</title>
		<link>http://www.markvanaalst.net/2009/08/07/a-fresh-start/</link>
		<comments>http://www.markvanaalst.net/2009/08/07/a-fresh-start/#comments</comments>
		<pubDate>Fri, 07 Aug 2009 12:24:25 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[Sitecore]]></category>
		<category><![CDATA[Blog]]></category>
		<category><![CDATA[Personal]]></category>

		<guid isPermaLink="false">http://www.markvanaalst.net/?p=55</guid>
		<description><![CDATA[Last week I took a look at my blog and realized that I haven&#8217;t posted anything the last few months. I just couldn&#8217;t find the time to write anything. It has been quite a busy last half year filled with a project at work which required all my time, some personal issues and at last [...]]]></description>
			<content:encoded><![CDATA[<p>Last week I took a look at my blog and realized that I haven&#8217;t posted anything the last few months. I just couldn&#8217;t find the time to write anything. It has been quite a busy last half year filled with a project at work which required all my time, some personal issues and at last I was involved in a car accident two months ago. By now I am recovering from the accident and slowly resumed my work at <a href="http://www.evident.nl" target="_blank">Evident</a>.</p>
<p>So last week I updated my blog, installed a new theme and wrote some draft posts. I&#8217;m hoping to blog a few times in a month on all kinds of Sitecore stuff.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.markvanaalst.net/2009/08/07/a-fresh-start/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The word is out</title>
		<link>http://www.markvanaalst.net/2009/01/07/the-word-is-out/</link>
		<comments>http://www.markvanaalst.net/2009/01/07/the-word-is-out/#comments</comments>
		<pubDate>Tue, 06 Jan 2009 23:57:58 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[Sitecore]]></category>

		<guid isPermaLink="false">http://www.markvanaalst.com/?p=16</guid>
		<description><![CDATA[As you might have noticed Sitecore announced the list of this years MVP&#8217;s. And I am proud to say that I am one of the thirteen MVP&#8217;s worldwide. I would like to congratulate Alistair Deneys, Christopher Wojciech, Julius Ganns, Justin Sjouw, Klaus Petersen, Mark Cassidy, Thomas Eldblom, Eric Briand, Andy Uzick, Glen McInnis, Alexander Pfandt [...]]]></description>
			<content:encoded><![CDATA[<p>As you might have noticed Sitecore <a href="http://www.sitecore.net/en/News/Press releases/2009/Sitecore MVP Program 2008.aspx">announced</a> the list of this years MVP&#8217;s. And I am proud to say that I am one of the thirteen MVP&#8217;s worldwide.</p>
<p>I would like to congratulate Alistair Deneys, Christopher Wojciech, Julius Ganns, Justin Sjouw, Klaus Petersen, Mark Cassidy, Thomas Eldblom, Eric Briand, Andy Uzick, Glen McInnis, Alexander Pfandt and Ben Golden for also becoming an Sitecore MVP.</p>
<p>Related blog posts:</p>
<ul>
<li><a href="http://blog.wojciech.org/?p=70">Sitecore MVP &#8211; Most Valueable Professionals 2008</a></li>
<li><a href="http://adeneys.wordpress.com/2009/01/06/its-official-welcome-the-mvps/">It’s official, welcome the MVPs!</a></li>
<li><a href="http://www.cassidy.dk/blog/sitecore/2009/01/sitecore-mvps-announced.html">Sitecore MVPs announced</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.markvanaalst.net/2009/01/07/the-word-is-out/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Custom search for Sitecore blogs</title>
		<link>http://www.markvanaalst.net/2008/12/26/custom-search-for-sitecore-blogs/</link>
		<comments>http://www.markvanaalst.net/2008/12/26/custom-search-for-sitecore-blogs/#comments</comments>
		<pubDate>Fri, 26 Dec 2008 23:52:52 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[Sitecore]]></category>
		<category><![CDATA[custom search]]></category>
		<category><![CDATA[google]]></category>

		<guid isPermaLink="false">http://www.markvanaalst.com/?p=13</guid>
		<description><![CDATA[Whenever I use Google to search for Sitecore information I get a lot of marketing and CMS review results and a few results with detailed developer information. So I created a Google custom search engine to search through all Sitecore related blogs. Now I can search through sites I think are the most usefull for [...]]]></description>
			<content:encoded><![CDATA[<p>Whenever I use Google to search for Sitecore information I get a lot of marketing and CMS review results and a few results with detailed developer information. So I created a <a title="Google Custom Search" href="http://www.google.com/coop/cse/" target="_blank">Google custom search engine</a> to search through all Sitecore related blogs. Now I can search through sites I think are the most usefull for me as an developer.</p>
<p>I use it a lot and thought I might be usefull to share this the rest of the community. So I created a little ASP.Net application around it which makes use of the <a title="Google Custom Search API" href="http://code.google.com/apis/customsearch/">Google Custom Search API</a>. Now it is possible for everyone to submit an url of which they think it&#8217;s usefull. I allready included all blogs which are used in the <a title="Sitecore Yahoo Pipe" href="http://pipes.yahoo.com/sitecore">Yahoo Pipe</a>. I hope that this search engine will be very usefull for everyone. I am planning on creating an search provider for both Internet Explorer and Firefox in the near future.</p>
<p>You can find the custom search engine at: <a title="Sitecore Blog Search" href="http://www.sitecoreblogsearch.com" target="_blank">http://www.sitecoreblogsearch.com</a></p>
<p>And off course you can use the comments to let me know what you think of the custom search.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.markvanaalst.net/2008/12/26/custom-search-for-sitecore-blogs/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Using fieldcontrols in a ListView</title>
		<link>http://www.markvanaalst.net/2008/11/26/using-fieldcontrols-in-a-listview/</link>
		<comments>http://www.markvanaalst.net/2008/11/26/using-fieldcontrols-in-a-listview/#comments</comments>
		<pubDate>Wed, 26 Nov 2008 07:38:45 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[.Net]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[Sitecore]]></category>
		<category><![CDATA[DataItem]]></category>
		<category><![CDATA[FieldControl]]></category>
		<category><![CDATA[ItemDatabound]]></category>
		<category><![CDATA[ListView]]></category>
		<category><![CDATA[ListViewDataItem]]></category>

		<guid isPermaLink="false">http://www.markvanaalst.com/?p=12</guid>
		<description><![CDATA[When you want to use a fieldcontrol like a Text, Link or Image control in a ListView you need to specify a datasource. By not specifying a datasource Sitecore looks at the current item. Which in a ListView is not the right one. So you need so set the datasource in code-behind or use an [...]]]></description>
			<content:encoded><![CDATA[<p>When you want to use a fieldcontrol like a Text, Link or Image control in a ListView you need to specify a datasource. By not specifying a datasource Sitecore looks at the current item. Which in a ListView is not the right one. So you need so set the datasource in code-behind or use an Eval expression in code-before.</p>
<p>When you want you use the code-behind option you need to raise an eventhandler which triggers the ItemDataBound handler.In that event you want to get the values of the current item. So you need to cast the ListViewDataItem to an Sitecore item.</p>
<p><span id="more-12"></span></p>
<p><strong>For instance:</strong></p>
<p>Code-before</p>
<pre class="brush: html">
&lt;asp:ListView ID=&quot;ListView1&quot; runat=&quot;server&quot;&gt;
&lt;LayoutTemplate&gt;
&lt;asp:PlaceHolder ID=&quot;itemPlaceholder&quot; runat=&quot;server&quot;&gt;&lt;/asp:PlaceHolder&gt;
&lt;/LayoutTemplate&gt;
&lt;ItemTemplate&gt;

&lt;h1&gt;&lt;sc:Text ID=&quot;Text1&quot; Field=&quot;Title&quot; runat=&quot;server&quot; /&gt;&lt;/h1&gt;

&lt;asp:HyperLink ID=&quot;BlogPostLink&quot; runat=&quot;server&quot;&gt;Read more...&lt;/asp:HyperLink&gt;

&lt;/ItemTemplate&gt;
&lt;/asp:ListView&gt;
</pre>
<p>Code-behind</p>
<pre class="brush: csharp">
ListView1.DataSource = BlogManager.GetAllBlogPosts(Sitecore.Context.Item.ID);
ListView1.ItemDataBound += new EventHandler&lt;ListViewItemEventArgs&gt;(ListView1_ItemDataBound);
ListView1.DataBind();
</pre>
<p>The datasource of the ListView is a generic list of items (In this case that will be all children matching a specific templateid). Then create an new EventHandler to bind the controls in the ItemTemplate to the current item.</p>
<pre class="brush: csharp">
void ListView1_ItemDataBound(object sender, ListViewItemEventArgs e)
{

Item objEntry = (Item)((ListViewDataItem)e.Item).DataItem;

Text txt = (Text)e.Item.FindControl(&quot;Text1&quot;);
txt.DataSource = objEntry.ID.ToString();
}
</pre>
<p>Instead of the above way I could also use an Eval in the code-before, but then I&#8217;m going to use C# in a way I don&#8217;t want to.<br />
<em>For example:</em></p>
<pre class="brush: html">
&lt;h1&gt;&lt;sc:Text ID=&quot;Text1&quot; DataSource=&#039;&lt;%#Eval(&quot;ID&quot;) %&gt;&#039; Field=&quot;Title&quot; runat=&quot;server&quot; /&gt;&lt;/h1&gt;
</pre>
<p>So why would I use this &#8220;hard&#8221; way, instead I could just create the controls in C#. Well when I am working on a Sitecore project, usually I do all .Net stuff and a frontend developer creates the html and css. So when he wants to edit the html structure it is still possible for him, and there is no need for him to look in the code-behind file.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.markvanaalst.net/2008/11/26/using-fieldcontrols-in-a-listview/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Maximum number of Sitecore query items</title>
		<link>http://www.markvanaalst.net/2008/11/05/maximum-number-of-sitecore-query-items/</link>
		<comments>http://www.markvanaalst.net/2008/11/05/maximum-number-of-sitecore-query-items/#comments</comments>
		<pubDate>Wed, 05 Nov 2008 22:47:16 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[Sitecore]]></category>
		<category><![CDATA[query]]></category>

		<guid isPermaLink="false">http://www.markvanaalst.com/?p=10</guid>
		<description><![CDATA[Last week I had some problems with an Sitecore Query. It didn&#8217;t show more than an fixed number of items. After some hard thinking I rembered that there is a web.config key called Query.MaxItem which, you might guessed it, controls the maximum number of results of an Sitecore Query.]]></description>
			<content:encoded><![CDATA[<p>Last week I had some problems with an Sitecore Query. It didn&#8217;t show more than an fixed number of items. After some hard thinking I rembered that there is a web.config key called Query.MaxItem which, you might guessed it, controls the maximum number of results of an Sitecore Query.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.markvanaalst.net/2008/11/05/maximum-number-of-sitecore-query-items/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Using profile with the Rich Text Editor</title>
		<link>http://www.markvanaalst.net/2008/11/05/using-profile-with-the-rich-text-editor/</link>
		<comments>http://www.markvanaalst.net/2008/11/05/using-profile-with-the-rich-text-editor/#comments</comments>
		<pubDate>Wed, 05 Nov 2008 17:36:39 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[Sitecore]]></category>
		<category><![CDATA[profiles]]></category>
		<category><![CDATA[rich text editor]]></category>
		<category><![CDATA[Sitecore 6]]></category>

		<guid isPermaLink="false">http://www.markvanaalst.com/?p=8</guid>
		<description><![CDATA[Regularly I see topics on the SDN5 forums where people ask if it is possible to use a custom Rich Text editor. Wll, yes it is. You can use so called profiles with the Rich Text editor. These profiles are stored in the Core database under /sitecore/system/Settings/Html Editor Profiles/. There are some default pre-configurated profile [...]]]></description>
			<content:encoded><![CDATA[<p>Regularly I see topics on the SDN5 forums where people ask if it is possible to use a custom Rich Text editor. Wll, yes it is. You can use so called profiles with the Rich Text editor. These profiles are stored in the Core database under /sitecore/system/Settings/Html Editor Profiles/. There are some default pre-configurated profile which you van duplicate and customize to your own needs.</p>
<p>To use these profile you need to set the source value of an rich text field in your template.</p>
<p><a title="View image fullsize" href="http://www.markvanaalst.com/files/2008/11/sc6_rteprofile.gif"><img src="http://www.markvanaalst.com/files/2008/11/sc6_rteprofile.gif" alt="Sitecore 5 Rich Text Editor" width="422" height="73" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.markvanaalst.net/2008/11/05/using-profile-with-the-rich-text-editor/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Disable Sitecore publishing</title>
		<link>http://www.markvanaalst.net/2008/10/20/disable-sitecore-publishing/</link>
		<comments>http://www.markvanaalst.net/2008/10/20/disable-sitecore-publishing/#comments</comments>
		<pubDate>Mon, 20 Oct 2008 22:49:45 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[Sitecore]]></category>
		<category><![CDATA[publishing]]></category>

		<guid isPermaLink="false">http://www.markvanaalst.com/?p=11</guid>
		<description><![CDATA[To avoid problems during the development of an Sitecore site it could be useful to disable the Sitecore Publishing method. This can be done by editing the following web.config rule: &#60;site name=&#8221;website&#8221; virtualFolder=&#8221;/&#8221; physicalFolder=&#8221;/&#8221; rootPath=&#8221;/sitecore/content&#8221; startItem=&#8221;/home&#8221; database=&#8221;web&#8221; domain=&#8221;extranet&#8221; allowDebug=&#8221;true&#8221; cacheHtml=&#8221;true&#8221; htmlCacheSize=&#8221;10MB&#8221; enablePreview=&#8221;true&#8221; enableWebEdit=&#8221;true&#8221; enableDebugger=&#8221;true&#8221; disableClientData=&#8221;false&#8221;/&#62; These are the settings of your current site. The database [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;">To avoid problems during the development of an Sitecore site it could be useful to disable the Sitecore Publishing method.</p>
<p>This can be done by editing the following web.config rule:</p>
<p>&lt;site name=&#8221;website&#8221; virtualFolder=&#8221;/&#8221; physicalFolder=&#8221;/&#8221; rootPath=&#8221;/sitecore/content&#8221; startItem=&#8221;/home&#8221; database=&#8221;web&#8221; domain=&#8221;extranet&#8221; allowDebug=&#8221;true&#8221; cacheHtml=&#8221;true&#8221; htmlCacheSize=&#8221;10MB&#8221; enablePreview=&#8221;true&#8221; enableWebEdit=&#8221;true&#8221; enableDebugger=&#8221;true&#8221; disableClientData=&#8221;false&#8221;/&gt;</p>
<p>These are the settings of your current site. The database key contains the database name from where the site needs to get its content. By setting this to the master database you do not need to publish your content anymore.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.markvanaalst.net/2008/10/20/disable-sitecore-publishing/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Sitecore 6 released</title>
		<link>http://www.markvanaalst.net/2008/07/01/sitecore-6-released/</link>
		<comments>http://www.markvanaalst.net/2008/07/01/sitecore-6-released/#comments</comments>
		<pubDate>Tue, 01 Jul 2008 16:08:01 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[Sitecore]]></category>
		<category><![CDATA[Sitecore 6]]></category>

		<guid isPermaLink="false">http://www.markvanaalst.com/?p=7</guid>
		<description><![CDATA[Yesterday the people at Sitecore released the new version of their CMS. Sitecore 6 (previously called &#8220;Crestone&#8221;) 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, [...]]]></description>
			<content:encoded><![CDATA[<p>Yesterday the people at Sitecore released the new version of their CMS. Sitecore 6 (previously called &#8220;Crestone&#8221;) has lots of improvements for either the end user as for dsevelopers.</p>
<p>A few improvements are:</p>
<ul>
<li>Inline editing for editors</li>
<li>.Net 2.0 Memebership support</li>
<li>New and faster Content Editor</li>
<li>New data types</li>
<li>The new Page editor</li>
</ul>
<p>and much, much more.</p>
<p>For a complete list the documentation team has released an &#8220;What&#8217;s New&#8221; document. You can find it on SDN5 <a title="What's new in Sitecore 6" href="http://sdn5.sitecore.net/upload/sitecore6/whatsnew-a4.pdf" target="_blank">here</a></p>
<p>More information involving enhancements can be find at the documentation are of SDN5.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.markvanaalst.net/2008/07/01/sitecore-6-released/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Copy &amp; Paste Layout Settings</title>
		<link>http://www.markvanaalst.net/2008/05/13/copy-paste-layout-settings/</link>
		<comments>http://www.markvanaalst.net/2008/05/13/copy-paste-layout-settings/#comments</comments>
		<pubDate>Tue, 13 May 2008 21:55:44 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[Sitecore]]></category>
		<category><![CDATA[layout settings]]></category>

		<guid isPermaLink="false">http://www.markvanaalst.com/?p=6</guid>
		<description><![CDATA[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&#8217;t the case. You can copy and paste the settings all at one time this way: 1. Navigate [...]]]></description>
			<content:encoded><![CDATA[<p>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&#8217;t the case.</p>
<p>You can copy and paste the settings all at one time this way:</p>
<p>1. Navigate to the source item in the Content Editor (or Template Manager)</p>
<p>2. On the &#8216;View&#8217; Ribbon (Menu tab on top of the screen) select Standard Fields and Raw Values</p>
<p>3. Copy the (raw) Renderings field value (in the layout section of the content of the item)</p>
<p>4. Paste it into the destination item Renderings Field.</p>
<p>5. Disable Raw values and standard fields if necessary.</p>
<p>There also is a (unsupported) Sitecore Module for this action. Check it out <a class="externallink" title="Layout copy paste" href="http://sitecoresupport.blogspot.com/2008/01/dev-layout-chunk.html" target="_blank">Layout copy paste</a>here.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.markvanaalst.net/2008/05/13/copy-paste-layout-settings/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Sitecore Validation Rules</title>
		<link>http://www.markvanaalst.net/2008/05/13/sitecore-validation-rules/</link>
		<comments>http://www.markvanaalst.net/2008/05/13/sitecore-validation-rules/#comments</comments>
		<pubDate>Tue, 13 May 2008 21:53:19 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[Sitecore]]></category>
		<category><![CDATA[validation]]></category>

		<guid isPermaLink="false">http://www.markvanaalst.com/?p=5</guid>
		<description><![CDATA[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 [...]]]></description>
			<content:encoded><![CDATA[<p>In Sitecore you can use validation rules. By default there are three validations rules on each template:</p>
<ul>
<li>Is Integer</li>
<li>Max Length 40</li>
<li>Requirer</li>
</ul>
<p>You can modify or add new rules in the sitecore\system\settings\validation\field section in the content editor</p>
<p>With the use of an multilist you can set the rules for your template.<br />
<img src="http://wiki.evident.nl/GetFile.aspx?File=ValidationRules.gif" alt="" width="559" height="241" /><br />
<strong><em>ATTENTION: Validation rules are already built in for version 5.3.1 but you can&#8217;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</em></strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.markvanaalst.net/2008/05/13/sitecore-validation-rules/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Rich Text Editor</title>
		<link>http://www.markvanaalst.net/2008/05/13/rich-text-editor/</link>
		<comments>http://www.markvanaalst.net/2008/05/13/rich-text-editor/#comments</comments>
		<pubDate>Tue, 13 May 2008 21:50:02 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[Sitecore]]></category>

		<guid isPermaLink="false">http://www.markvanaalst.com/?p=4</guid>
		<description><![CDATA[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 &#62; Preferences &#62; Change Your Application Options Tab Rich Text Editor Select editable You see that the Content Editor got [...]]]></description>
			<content:encoded><![CDATA[<p>One of the most annoying things about Sitecore is that the Rich Text Editor needs to be opent in an seperate web page dialog.</p>
<p>But you can customize this behavior!</p>
<ul>
<li>Go to the Control Panel &gt; Preferences &gt; Change Your Application Options</li>
<li>Tab Rich Text Editor</li>
<li>Select editable</li>
</ul>
<p>You see that the Content Editor got expanded with the tab “Rich Text”</p>
<p><img src="http://wiki.evident.nl/GetFile.aspx?File=RichTextEditor.gif" alt="" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.markvanaalst.net/2008/05/13/rich-text-editor/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Dynamic load where parameters for linqDatasource</title>
		<link>http://www.markvanaalst.net/2008/04/21/dynamic-load-where-parameters-for-linqdatasource/</link>
		<comments>http://www.markvanaalst.net/2008/04/21/dynamic-load-where-parameters-for-linqdatasource/#comments</comments>
		<pubDate>Mon, 21 Apr 2008 11:39:27 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[.Net]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[linq]]></category>

		<guid isPermaLink="false">http://www.markvanaalst.com/?p=3</guid>
		<description><![CDATA[When using an Linq Datasource (linq to sql) for a datagrid (Gridview, ListView, etc) you don&#8217;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 [...]]]></description>
			<content:encoded><![CDATA[<p>When using an Linq Datasource (linq to sql) for a datagrid (Gridview, ListView, etc) you don&#8217;t always want all rows from a table. To exclute data you can use the WhereParameters to add an where statement to your DataSource.</p>
<p>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.</p>
<p>The following examples shows how to filter the Linq Datasource that recovers all rows from the <em>Post </em>table and filters them on the BlogId. The <em>BlogManager.CurrentBlogId</em> gets the blog GUID from the Session.</p>
<p>[code:c#]<br />
   Parameter whereparam = new Parameter();<br />
   whereparam.Name = "BlogId";<br />
   whereparam.DefaultValue = BlogManager.CurrentBlogId.ToString();<br />
   whereparam.Type = TypeCode.Object;<br />
   linqDataSource.WhereParameters.Add(whereparam);<br />
   linqDataSource.Where = "BlogId == <strong>Guid(@BlogId)</strong>";<br />
[/code]</p>
<p>You convert the <em>@BlogId </em>(string) to a Guid In the<em> linqDataSource.Where </em>property otherwise you get the following error<em>:<br />
</em></p>
<h2><em>Operator &#8216;==&#8217; incompatible with operand types &#8216;Guid&#8217; and &#8216;String&#8217; </em></h2>
<p><span style="font-family: Arial, Helvetica, Geneva, SunSans-Regular, sans-serif;"><em><strong><span style="font-family: Verdana;">Description: </span></strong>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.</p>
<p><strong><span style="font-family: Verdana;">Exception Details: </span></strong>System.Web.Query.Dynamic.ParseException: Operator &#8216;==&#8217; incompatible with operand types &#8216;Guid&#8217; and &#8216;String&#8217; </em></span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.markvanaalst.net/2008/04/21/dynamic-load-where-parameters-for-linqdatasource/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
