<?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>Fredrik Haglund's blog &#187; EPiServer 4</title>
	<atom:link href="http://blog.fredrikhaglund.se/blog/tag/episerver-4/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.fredrikhaglund.se</link>
	<description>Chatter about EPiServer, ASP.NET, CSS and Web Development.</description>
	<lastBuildDate>Tue, 28 Jun 2011 13:37:32 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Available Page Types in EPiServer</title>
		<link>http://blog.fredrikhaglund.se/blog/2008/03/20/available-page-types-in-episerver/</link>
		<comments>http://blog.fredrikhaglund.se/blog/2008/03/20/available-page-types-in-episerver/#comments</comments>
		<pubDate>Thu, 20 Mar 2008 13:24:59 +0000</pubDate>
		<dc:creator>Fredrik Haglund</dc:creator>
				<category><![CDATA[EPiServer]]></category>
		<category><![CDATA[Available Page Types]]></category>
		<category><![CDATA[EPiServer 4]]></category>
		<category><![CDATA[EPiServer 5]]></category>
		<category><![CDATA[Export]]></category>
		<category><![CDATA[Import]]></category>

		<guid isPermaLink="false">http://blog.fredrikhaglund.se/blog/2008/03/20/available-page-types-in-episerver/</guid>
		<description><![CDATA[It is a best practice to limit the number of Pages Types an editor can choose from when the editor creates a new page. As you probably know this is configured in Admin Mode on each Page Type. What you probably don&#8217;t think about is that these settings can make it impossible to import and [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://blog.fredrikhaglund.se/wp-content/uploads/2008/03/image-thumb10.png"><img style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" src="http://blog.fredrikhaglund.se/wp-content/uploads/2008/03/image-thumb10-thumb.png" border="0" alt="image_thumb[10]" width="244" height="191" align="right" /></a>It is a best practice to limit the number of Pages Types an editor can choose from when the editor creates a new page.</p>
<p>As you probably know this is configured in Admin Mode on each Page Type. What you probably don&#8217;t think about is that these settings can make it impossible to import and export pages.</p>
<h3>&#8220;Available Page Types&#8221;-rules can break import</h3>
<p>If your rules change over time or if you use Stop Publish and Archive Page so your pages moves around you can get in trouble with these rules.</p>
<p>In the current version (5.1.422.122 SP1) the import will stop with an error and it can be quite hard to figure out what is wrong.</p>
<p>I created a SQL-statement to help you figure out what is wrong. It will give you a list of all pages breaking the &#8220;Available Page Types&#8221;-rules. It lists the Parent and Child&#8217;s Page Id, Page Name and also Page Type.</p>
<p><a href="http://blog.fredrikhaglund.se/wp-content/uploads/2008/03/image14.png"><img style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" src="http://blog.fredrikhaglund.se/wp-content/uploads/2008/03/image-thumb2.png" border="0" alt="image" width="504" height="283" /></a></p>
<p>This (messy) SQL statement for copy paste:</p>
<p><code>SELECT fkParentID AS ParentPageId, pkID AS ChildPageId, (SELECT Name FROM tblPage AS p2 WHERE (pkID = p.fkParentID)) AS ParentPageName, Name AS ChildPageName, (SELECT fkPageTypeID FROM tblPage AS p2 WHERE (pkID = p.fkParentID)) AS ParentPageTypeId, fkPageTypeID AS ChildPageTypeId FROM tblPage AS p WHERE (NOT EXISTS (SELECT fkPageTypeParentID, fkPageTypeChildID, Access FROM tblPageTypeToPageType AS tt WHERE (fkPageTypeParentID = (SELECT fkPageTypeID FROM tblPage AS p2 WHERE (pkID = p.fkParentID))) AND (fkPageTypeChildID = p.fkPageTypeID))) AND EXISTS (SELECT fkPageTypeParentID, fkPageTypeChildID, Access FROM tblPageTypeToPageType AS tt WHERE (fkPageTypeParentID = (SELECT fkPageTypeID FROM tblPage AS p2 WHERE (pkID = p.fkParentID)))) </code></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.fredrikhaglund.se/blog/2008/03/20/available-page-types-in-episerver/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Archive Page can create strange exceptions</title>
		<link>http://blog.fredrikhaglund.se/blog/2008/03/17/archive-page-can-create-strange-exceptions/</link>
		<comments>http://blog.fredrikhaglund.se/blog/2008/03/17/archive-page-can-create-strange-exceptions/#comments</comments>
		<pubDate>Mon, 17 Mar 2008 10:54:37 +0000</pubDate>
		<dc:creator>Fredrik Haglund</dc:creator>
				<category><![CDATA[EPiServer]]></category>
		<category><![CDATA[Archive page]]></category>
		<category><![CDATA[EPiServer 4]]></category>
		<category><![CDATA[EPiServer 5]]></category>
		<category><![CDATA[Export]]></category>
		<category><![CDATA[Import]]></category>

		<guid isPermaLink="false">http://blog.fredrikhaglund.se/blog/2008/03/17/archive-page-can-create-strange-exceptions/</guid>
		<description><![CDATA[If you export pages that have the Build-in property Archive Page set pointing to a page that is not included in your export package you will get an exception. At least if you are migrating from EPiServer 4 to 5.1. Use the following script if you want to clear all the value of Archive page [...]]]></description>
			<content:encoded><![CDATA[<p>If you export pages that have the Build-in property Archive Page set pointing to a page that is <em>not included</em> in your export package you will get an exception. At least if you are migrating from EPiServer 4 to 5.1.</p>
<p>Use the following script if you want to clear all the value of Archive page on all pages in your source database:</p>
<p><code>UPDATE tblPageTypeDefault<br />
SET fkArchivePageID = NULL</code></p>
<p>Remember to do a iisreset to invalidate all cached information after you change in the database.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.fredrikhaglund.se/blog/2008/03/17/archive-page-can-create-strange-exceptions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

