November Happy Hour will be moved to Thursday December 5th.

How to order the available page types when creating a new page?

Vote:
 

Hi!

Is there a way to influnce in which order the available page types are displayed when creating a new page? 

When you are creating a new page you first get the recommended page types and then the other page types. But these always overlap, is there a way to get the "other pages" to only show the rest of the available page types, dependent on what are showen in the recomenden section? Or is there a way to remove the recomended section?

thanks for any help.

#70724
Apr 29, 2013 9:32
Vote:
 

You can change which group your page type belongs to, and the sort order of the page types in that group, but AFAIK there is no built-in way to disable the "suggested page types" group which causes the overlap you're refering to on the "New page" screen.

Changing a page type's group and sort order in code (taken from Alloy demo templates):

namespace EPiServer.Templates.Alloy.Models.Pages
{
    [SiteContentType(
       GUID = "DBED4258-8213-48DB-A11F-99C034172A54",
       GroupName = Global.GroupNames.Specialized, 
       Order=10)]
    [SiteImageUrl]
    public class LandingPage : SitePageData
    {
        // Property definitions here
    }
}

If you don't specify a GroupName for your page type, it will default to the "Other page types" group.
If you don't specify an Order, it will default to 0.

#71606
May 24, 2013 0:41
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* 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.