<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Available Page Types in EPiServer</title>
	<atom:link href="http://blog.fredrikhaglund.se/blog/2008/03/20/available-page-types-in-episerver/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.fredrikhaglund.se/blog/2008/03/20/available-page-types-in-episerver/</link>
	<description>Chatter about EPiServer, ASP.NET, CSS and Web Development.</description>
	<lastBuildDate>Wed, 08 Sep 2010 10:48:14 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Diego Delfino</title>
		<link>http://blog.fredrikhaglund.se/blog/2008/03/20/available-page-types-in-episerver/comment-page-1/#comment-3105</link>
		<dc:creator>Diego Delfino</dc:creator>
		<pubDate>Mon, 15 Dec 2008 13:15:52 +0000</pubDate>
		<guid isPermaLink="false">http://blog.fredrikhaglund.se/blog/2008/03/20/available-page-types-in-episerver/#comment-3105</guid>
		<description>Hi fredrik,

I have been thinking of your last suggestion and it looks like it may be the only answer, I do fear a little that the Database calls would increasy conciderably becasue of calls to check that state on every page type created. It is by far the best suggestion I have heard yet. I was also looking into the PageType class and hopping to change the outcome of every page from there but that seems to only make it worse and i don&#039;t beleive in that straight.

keep you posted on my progress
Diego</description>
		<content:encoded><![CDATA[<p>Hi fredrik,</p>
<p>I have been thinking of your last suggestion and it looks like it may be the only answer, I do fear a little that the Database calls would increasy conciderably becasue of calls to check that state on every page type created. It is by far the best suggestion I have heard yet. I was also looking into the PageType class and hopping to change the outcome of every page from there but that seems to only make it worse and i don&#8217;t beleive in that straight.</p>
<p>keep you posted on my progress<br />
Diego</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fredrik Haglund</title>
		<link>http://blog.fredrikhaglund.se/blog/2008/03/20/available-page-types-in-episerver/comment-page-1/#comment-3104</link>
		<dc:creator>Fredrik Haglund</dc:creator>
		<pubDate>Mon, 15 Dec 2008 13:07:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.fredrikhaglund.se/blog/2008/03/20/available-page-types-in-episerver/#comment-3104</guid>
		<description>Sorry, can not see that it is possible to override that code the way you would like. It can be done if you start changing files from EPiServer with their User Interface but that is not recommended.

Look at OnLoad() at NewPage class and PageTypeDB.ListForNewPage() and you will see that there are no easy way to hook or override this. 

The only workaround I can think of is to us an undocumented feature and insert allowed page types for a single page directly into tblPageToPageType. There is no API to do this so you have to change the database directly.</description>
		<content:encoded><![CDATA[<p>Sorry, can not see that it is possible to override that code the way you would like. It can be done if you start changing files from EPiServer with their User Interface but that is not recommended.</p>
<p>Look at OnLoad() at NewPage class and PageTypeDB.ListForNewPage() and you will see that there are no easy way to hook or override this. </p>
<p>The only workaround I can think of is to us an undocumented feature and insert allowed page types for a single page directly into tblPageToPageType. There is no API to do this so you have to change the database directly.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Diego Delfino</title>
		<link>http://blog.fredrikhaglund.se/blog/2008/03/20/available-page-types-in-episerver/comment-page-1/#comment-3103</link>
		<dc:creator>Diego Delfino</dc:creator>
		<pubDate>Mon, 15 Dec 2008 12:03:39 +0000</pubDate>
		<guid isPermaLink="false">http://blog.fredrikhaglund.se/blog/2008/03/20/available-page-types-in-episerver/#comment-3103</guid>
		<description>Hi Fredrik,

I have managed to come up to a partial solution and would much apreciate your guidence in the following steps.

I have now created a property for the page i want to use as a container, this page gets the systems available parent types from a list in the web.config file. I would need some suggestion if you have to override the code that corresponds to tha determination of witch page types to make available for a page type and by this just comparing the parent type with the one the admin has defined in the page three.
any suggestions?
best reegards 
Diego Delfino</description>
		<content:encoded><![CDATA[<p>Hi Fredrik,</p>
<p>I have managed to come up to a partial solution and would much apreciate your guidence in the following steps.</p>
<p>I have now created a property for the page i want to use as a container, this page gets the systems available parent types from a list in the web.config file. I would need some suggestion if you have to override the code that corresponds to tha determination of witch page types to make available for a page type and by this just comparing the parent type with the one the admin has defined in the page three.<br />
any suggestions?<br />
best reegards<br />
Diego Delfino</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fredrik Haglund</title>
		<link>http://blog.fredrikhaglund.se/blog/2008/03/20/available-page-types-in-episerver/comment-page-1/#comment-3102</link>
		<dc:creator>Fredrik Haglund</dc:creator>
		<pubDate>Mon, 15 Dec 2008 10:27:33 +0000</pubDate>
		<guid isPermaLink="false">http://blog.fredrikhaglund.se/blog/2008/03/20/available-page-types-in-episerver/#comment-3102</guid>
		<description>Hi Diego!

I  can not see any possibility too control available page types with code. If you use a Reflector and reveres engineer the NewPage class you can see that it retrives the list of page types from the database.

Best suggestion is to have several Page Types with diffrent configuration but pointing to the same aspx-file.

/Fredrik</description>
		<content:encoded><![CDATA[<p>Hi Diego!</p>
<p>I  can not see any possibility too control available page types with code. If you use a Reflector and reveres engineer the NewPage class you can see that it retrives the list of page types from the database.</p>
<p>Best suggestion is to have several Page Types with diffrent configuration but pointing to the same aspx-file.</p>
<p>/Fredrik</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Diego Delfino</title>
		<link>http://blog.fredrikhaglund.se/blog/2008/03/20/available-page-types-in-episerver/comment-page-1/#comment-3101</link>
		<dc:creator>Diego Delfino</dc:creator>
		<pubDate>Mon, 15 Dec 2008 09:48:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.fredrikhaglund.se/blog/2008/03/20/available-page-types-in-episerver/#comment-3101</guid>
		<description>hej Fredrik,

Finns det ett sätt att kunna bestämma vilken sidtyp som skall visas för en specifik sida beroende på den aktuella sidans förrällder via kod kanske?

Ett exempel:

Jag befinner mig under en del av ett sträd och jag skapar en lista, listsidtypen säger att jag bara kan skapa en specifik sidtyp under denna vilket är ok men under en annan del av trädet vill jag använda mig utav samma sidtyp för att skapa en lista och jag vill att denna sidtyp (som är samma som i andra delen av trädet) visar andra sidtyper jag kan skapa under den. Allt detta skall bero inte på den aktuella sidtypen jag skapar sidan under utan på dess förällder.

Tack på förhand
Diego Delfino</description>
		<content:encoded><![CDATA[<p>hej Fredrik,</p>
<p>Finns det ett sätt att kunna bestämma vilken sidtyp som skall visas för en specifik sida beroende på den aktuella sidans förrällder via kod kanske?</p>
<p>Ett exempel:</p>
<p>Jag befinner mig under en del av ett sträd och jag skapar en lista, listsidtypen säger att jag bara kan skapa en specifik sidtyp under denna vilket är ok men under en annan del av trädet vill jag använda mig utav samma sidtyp för att skapa en lista och jag vill att denna sidtyp (som är samma som i andra delen av trädet) visar andra sidtyper jag kan skapa under den. Allt detta skall bero inte på den aktuella sidtypen jag skapar sidan under utan på dess förällder.</p>
<p>Tack på förhand<br />
Diego Delfino</p>
]]></content:encoded>
	</item>
</channel>
</rss>
