Login widget template - Front- & Back-End Development - Front- & Back-End Development - Progress Community
 Front- & Back-End Development

Login widget template

  • Login widget template
  • 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?


  • 280805_LoginControl-map.PNG
    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
  • 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.