Don't miss out Virtual Happy Hour this Friday (April 26).

Try our conversational search powered by Generative AI!

Change StartPage type

Vote:
 

How can I change the type of StartPage without logging into CMS? I just want to point it to a similar but different class.

 

#83160
Mar 26, 2014 19:13
Vote:
 

Could you specify the reason that you want it to point to a different class?

#83165
Mar 26, 2014 22:13
Vote:
 

Yes, I am migrating over a site from version 6 R2, which has its own StartPage type that I want to keep.

 

In version 7.5, I started with the Alloy sample, and am swapping out components (like PageTypes) with ones from my site.

#83167
Mar 26, 2014 23:05
Vote:
 

Oh sorry I thought you wanted to swap class on the fly.

The key mapping between the Page Type in the EPiServer database and your classes representing the Page Type Model is a Guid.

If you add the Class Attribute "ContentType" and specify the Guid of the existing page type, EPiServer will connect these two.

The Guid can be found in the database or if you enter the EPiServer Admin mode, find you Page Type and click the Settings button.

In the Advanced area you can see the Guid to your Page Type.

For example

[ContentType(DisplayName = "My Page Type",
GUID = "3e04ba6f-a598-492c-93b9-dcd2de8dd63b")]

Note that you can't have two Page Type classes having the same Guid in the ContentType attribute.

#83658
Mar 31, 2014 8:40
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.