More in this section

Forums / Developing with Sitefinity / Can I my own page in admin section of sitefinity

Can I my own page in admin section of sitefinity

2 posts, 0 answered
  1. Manoj
    Manoj avatar
    20 posts
    Registered:
    23 Oct 2008
    11 Feb 2009
    Link to this post
    I have create My own page in sitefinity admin section which I can access by putting the page name in URL

    but i want it to link up with sitefinity admin section beside "module" either under "module" menu. is it possible if yes then how.


  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    11 Feb 2009
    Link to this post
    Hello Manoj,

    You can add a link to your page under MainMenu RadTabstrip. You should edit ~/Sitefinity/Admin/Admin.master.cs file and add a new tab on Page_Load

    Here is  an example:

    protected void Page_Load(object sender, EventArgs e) 
        { 
            this.userName.Controls.Add(new LiteralControl(Telerik.Security.UserManager.GetCurrentUserName())); 
            this.projectName.Controls.Add(new LiteralControl(Telerik.Cms.Web.UrlHelper.GetProjectName())); 
            // BEGIN EXCLUDE FOR COMMUNITY 
            this.langList.Visible = LocalizationManager.PersistenceMode != LocConfig.PersistenceMode.None; 
            // END EXCLUDE FOR COMMUNITY 
            this.MainMenu.DataBind(); 
            RadTab mytab = new RadTab("MyTab","http://www.yahoo.com"); 
            mytab.NavigateUrl = "http://www.yahoo.com"
            MainMenu.Tabs.Add(mytab); 
        } 

    You can also edit the Admin.master template and add the link to your page at the upper right corner next to My Profile, Logout

    Example:

    <li id="userName" class="userName" runat="server"><asp:Label id="userLabel" runat="server" Text="<%$ Resources:UserLabel %>"></asp:Label>&nbsp;</li> 
                            <li>&nbsp;|&nbsp;<asp:HyperLink ID="preferenceLink" ToolTip="Change your settings" Text="<%$ Resources:MyPreference %>" NavigateUrl="~/Sitefinity/Admin/CmsAdmin/MyPreferences.aspx" runat="server"></asp:HyperLink></li
                            <li>&nbsp;|&nbsp;<asp:HyperLink ID="profileLink" ToolTip="Change your profile" Text="<%$ Resources:MyProfile %>" NavigateUrl="~/Sitefinity/Admin/CmsAdmin/MyProfile.aspx" runat="server"></asp:HyperLink></li
                            <li>&nbsp;|&nbsp;<asp:LinkButton ID="logoutButton" CausesValidation="false" OnClick="logoutButton_Click" ToolTip="<%$ Resources:Logout %>" Text="<%$ Resources:Logout %>" runat="server"></asp:LinkButton></li
                            <li>&nbsp;|&nbsp;<asp:HyperLink ID="HyperLink1" ToolTip="CustomLogin" Text="CustomLogin" NavigateUrl="http://www.yahoo.com" runat="server"></asp:HyperLink></li

    I hope this helps.

    Regards,
    Ivan Dimitrov
    the Telerik team

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