Try Now
More in this section

Forums / General Discussions / Page type options

Page type options

2 posts, 0 answered
  1. Rene
    Rene avatar
    25 posts
    02 Feb 2009
    07 Jan 2010
    Link to this post

    When creating a new page, there are 3 type options to choose from. Is it possible to remove/disable the 'Page Group' option for users without having admin access? If not, will this option be possible in Sitefinity 4 or is there no chance to change the 3 different type options you have when creating a new page?

    Thanks in advance for the answer.

  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    25 Oct 2016
    07 Jan 2010
    Link to this post
    Hello Rene,

    It is possible to disable the group options easily.

    You have to edit PagePropertiesInsert.ascx and PagePropertiesEdit.ascx templates and add the following logic to them

    public void Page_Load(object sender, EventArgs e)
               ListItem item1 = new ListItem("NormalPage", "0");
               ListItem item2 = new ListItem("External", "2");

    You have to remove the declaratively added list items from the control templates, so you will leave only the RadiobuttonList control without any items.

    <div class="directionFloat" >
    <asp:RadioButtonList runat="server" ID="PageTypeOptions" RepeatDirection="Vertical" RepeatLayout="Flow">

    Sincerely yours,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
2 posts, 0 answered