+1-888-365-2779
Try Now
More in this section

Forums / Bugs & Issues / login status control templating broken

login status control templating broken

4 posts, 0 answered
  1. Justin
    Justin avatar
    2 posts
    Registered:
    12 Jul 2013
    17 Nov 2014
    Link to this post

    It is impossible to set the template layout for the login status control. This is caused by code that doesn't do what the developer who wrote it thought it did.

            public override string LayoutTemplatePath
            {
                get
                {
                    if (!this.IsLoggedIn)
                    {
                        return this.LoggedOutLayoutTemplatePath;
                    }
                    return this.LoggedInLayoutTemplatePath;
                }
                set
                {
                }
            }

            public virtual string LoggedOutLayoutTemplatePath
            {
                get
                {
                    return ControlUtilities.ToVppPath("Telerik.Sitefinity.Resources.Templates.PublicControls.LoginStatus_LoggedOut.ascx");
                }
                set
                {
                    base.LayoutTemplatePath = value;
                }
            }

    This obviously doesn't work.

  2. Ivan D. Dimitrov
    Ivan D. Dimitrov avatar
    310 posts
    Registered:
    26 Mar 2015
    20 Nov 2014
    Link to this post
    Hello Justin,

    You are correct - removing the template this way or adding a value for the template path in the designer will not alter the actual output of the widget and will revert all settings. This is due to the implementation of the Login Status control. In the past we had some problems with the control getting cached and displaying a wrong template. Therefore we added cache substitution for it so it no longer uses a default template, but constructs one. Details on both the implementation of the control and ways to change its layout can be found in my colleague Boyan's answer to this forum thread

    Regards,
    Ivan D. Dimitrov
    Telerik
     
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
     
  3. Justin
    Justin avatar
    2 posts
    Registered:
    12 Jul 2013
    20 Nov 2014 in reply to Ivan D. Dimitrov
    Link to this post
    And you decided a thread on a forum was the best place to document this?
  4. Ivan D. Dimitrov
    Ivan D. Dimitrov avatar
    310 posts
    Registered:
    26 Mar 2015
    25 Nov 2014
    Link to this post
    Hi Justin,

    You are correct - we do not have documentation on methods for extending every control within Sitefinity. Also I could not find any such request to our Documentation Portal. Feel free to log one if need be. For the time being, you can always post issues encountered while extending our default widgets in our forums or through a support ticket. We will gladly answer any questions you may have.

    Regards,
    Ivan D. Dimitrov
    Telerik
     
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
     
4 posts, 0 answered