More in this section

Forums / Developing with Sitefinity / How do I modify the 'Create a page' form?

How do I modify the 'Create a page' form?

2 posts, 0 answered
  1. Carl
    Carl avatar
    23 posts
    15 Jul 2008
    21 Aug 2008
    Link to this post

    I was wondering if it's possible to modify the existing "Create a page" form.

    What we would like to be able to do is add a couple of new fields to the form, and this new data would either be stored in one of the existing Sitefinity Page tables (PageBase?), or in a new table.


  2. Sonya
    Sonya avatar
    231 posts
    24 Sep 2012
    25 Aug 2008
    Link to this post
    Hi Carl,

    Unfortunately, this is not possible at the moment. However, we have attached some code which may serve as a guidance for making a workaround until we provide it out of the box.

    Basically, in the page templates we have PageEditor control, which you have to inherit. This control is also creating the second tab with CreatePropertiesTab method. Obviously, we have to override this method and create our properties tag with all custom controls inside.

    Every control that we should refer to, should be presented in PagePropertiesInsert.ascx and PagePropertiesEdit.ascx, these are the page templates, located in \[YourProject]\Sitefinity\Admin\ControlTemplates\Pages.

    There are also some comments inside the source files.

    The default PageEditor control is instantiated in ~/Sitefinity/Admin/Pages.aspx.
    So, you need to edit that ASPX page and change the default PageEditor with your custom one:

    <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"
        <div id="main"
            <div class="in"
                <custom:CustomPageEditor ID="pageEditor" runat="server"></custom:CustomPageEditor>           
        <div id="subnav"
            <div class="in"
                <cc1:SiteMapPanel ID="siteMap" PageEditorID="pageEditor" runat="server" /> 
        <div class="clear width"><!-- --></div

    Please let us know if you need further assistance.

    All the best,
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
2 posts, 0 answered