More in this section

Forums / Developing with Sitefinity / Sitefinity 3.6. Title of Intra-Site module not visible

Sitefinity 3.6. Title of Intra-Site module not visible

5 posts, 0 answered
  1. Anton Mernov
    Anton Mernov avatar
    110 posts
    Registered:
    03 Dec 2008
    18 Feb 2009
    Link to this post
    Hi all,

    I has update Sitefinity  from 3.5 to 3.6 and took notice that title of Intra-Site modules are not visible into ControlPanel.
    For example, I have simple code:

    public partial class demo_ControlPanel : System.Web.UI.UserControl, Telerik.Web.IControlPanel 
        protected void Page_Load(object sender, EventArgs e) 
        { 
     
        } 
        #region IControlPanel Members 
     
        public ICommandPanel[] CommandPanels 
        { 
            get { return new ICommandPanel[] { (ICommandPanel)this.Page.LoadControl("~/Demo/ToolboxPanel.ascx") }; } 
        } 
     
        public void Refresh() 
        { 
            throw new NotImplementedException(); 
        } 
     
        public string Status 
        { 
            get { return "Demo Intra-site Module Status"; } 
        } 
     
        public string Title 
        { 
            get { return "Title Not visible into Sitefinity 3.6"; } 
        } 
        #endregion 

    Any ideas?

    Thanks,
    Anton.
  2. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    18 Feb 2009
    Link to this post
    Hi Anton,

    We found out this shortly after we released Sitefinity 3.6. Please refer to the KB Article Intra-site secured modules are not visible in the modules menu for more information and a suggestion for a fix.

    Sincerely yours,
    Georgi
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. Anton Mernov
    Anton Mernov avatar
    110 posts
    Registered:
    03 Dec 2008
    18 Feb 2009
    Link to this post
    Hi Georgi,

    Thanks, but I already has seen this KB article.
    It describe about visibility in modules menu of Intra-site secured modules, about permission settings.
    In my case I talk about simple Intra-Site modules based in Telerik.WebModule and visibility of their title in ControlPanel.

    May be I'm not understand some things )), but I think this is not same.

    How I can attach image?

    Best regards,
    Anton.
  4. Pepi
    Pepi avatar
    981 posts
    Registered:
    31 Jan 2017
    19 Feb 2009
    Link to this post
    Hello Anton,

    Please, open ~/Sitefinity/Admin/Modules.aspx.cs file and then modify OnPreRender method like this:

    protected override void OnPreRender(EventArgs e) 
        { 
            base.OnPreRender(e); 
            if (this.contolPanel is IControlPanel) 
            { 
                IControlPanel pnl = (IControlPanel)this.contolPanel; 
                this.ControlPanelTitle.InnerText = pnl.Title; 
            } 
            else if (this.contolPanel is Telerik.Web.IControlPanel) 
            { 
                Telerik.Web.IControlPanel pnl = (Telerik.Web.IControlPanel)this.contolPanel; 
     
                if (pnl is IViewModeControl) 
                { 
                    this.ControlPanelTitle.Visible = false
                } 
                else 
                { 
                    this.ControlPanelTitle.InnerText = pnl.Title; 
                } 
            } 
        } 

    Do let us know if this helps.

    Regards,
    Pepi
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  5. Anton Mernov
    Anton Mernov avatar
    110 posts
    Registered:
    03 Dec 2008
    19 Feb 2009
    Link to this post
    Hello Pepi,

    It works.
    Thanks, it's what I need.

    Best regards,
    Anton.
Register for webinar
5 posts, 0 answered