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

Forums / Designing & Styling / Login widget template

Login widget template

3 posts, 0 answered
  1. El Barto
    El Barto avatar
    42 posts
    Registered:
    28 Apr 2008
    22 Jun 2011
    Link to this post
    Hi,

    I'm trying to create a template for the login control. I've got the default template from the SDK. I just added some text to test if the custom template gets loaded. Unfortunately I can't get it to work. I've copied the template from the SDK to a Templates directory in the root of my website. I've added a login control from the toolbox to the page. I've set the LayoutTemplatePath property to ~/Templates/LoginControl.ascx.
    I'm obviously missing something here. What am I doing wrong?

    Thanks...

    Bart
  2. Boyan Barnev
    Boyan Barnev avatar
    1429 posts
    Registered:
    06 Dec 2016
    24 Jun 2011
    Link to this post
    Hello El Barto,

    Can you try restarting the application, and let us know if the problems still persist? If you're still experiencing problems  you'll need to map the template for LoginForm and LoginControl in the backend by going to Administration->Settings->Advanced->Controls>ViewMap->Create new and fill in the fields accordingly(all without the quotes):
    HostType: Telerik.Sitefinity.Web.UI.PublicControls.LoginControl
    LayoutTemplatePath: "relative path to your custom LoginControl.ascx "
    I've also attached a screenshot for your reference. Please do not hesitate to let us know if you have any additional questions.





    Kind regards,
    Boyan Barnev
    the Telerik team
    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 Public Issue Tracking system and vote to affect the priority of the items
  3. El Barto
    El Barto avatar
    42 posts
    Registered:
    28 Apr 2008
    29 Jun 2011
    Link to this post
    Hi Boyan,

    I already tried restarting the site serveral times, but to no avail. Creating a new viewmap worked though. So thanks for the tip. It's even a better solution in my case as I don't have to set the template on each control in the solution.
    Thanks.
3 posts, 0 answered