Jump to:

3435 Posts in 1026 Topics by 866 members

Template Questions

SilverStripe Forums » Template Questions » Forgotten Password Template Problem

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 2911 Views
  • nimeso
    Avatar
    Community Member
    17 Posts

    Forgotten Password Template Problem Link to this post

    Hi All,

    Firstly, Thanks for such a great product... lovin it!

    I'm quite new to SS and have just finished my first simple site but I have a problem with the 'Lost Password Page'.

    Because the lost password url is something like http://testsite.tko/Security/lostpassword. My sub menu is showing up... following?

    see attached screen

    my menu code looks something like:

    <% if Menu(2) %>
    <div class="oneCol leftMenu">
    <ul>
    <% control Menu(2) %>
    <li class="$LinkingMode"><a href="$Link" title="Go to the &quot;{$Title}&quot; page">$MenuTitle</a>
       <% if LinkOrSection = section %>
    <% if Children %>
    <ul>
    <% control Children %>
    <li class="$LinkingMode"><a href="$Link" title="Go to the &quot;{$Title}&quot; page">$MenuTitle</a></li>
    <% end_control %>
    </ul>
    <% end_if %>
             <% end_if %>
    </li>
    <% end_control %>
    </ul>
    </div>
    <% end_if %>

    How do I stop the menu showing?

    Thanks heaps

    Jamie

    Attached Files
  • baba-papa
    Avatar
    Community Member
    279 Posts

    Re: Forgotten Password Template Problem Link to this post

    Hello Jamie,

    I think that the method "lostpassword" is redered with the Page.ss template. You can create a template that will be applied if the "lostpassword" method is called.
    1. Copy the Page.ss template
    2. rename the copy Page_lostpassword.ss
    3. Change the template code of Page_lostpassword.ss

    I hope that will work ;)

    Roland

  • mschiefmaker
    Avatar
    Community Member
    187 Posts

    Re: Forgotten Password Template Problem Link to this post

    So I have created a lost template which applies but I have lost it contents i.e. I no longer see

    Enter your e-mail address and we will send you a link with which you can reset your password

    Email ...

    I have tried calling $LostPasswordForm i.e.

    <div class="typography">
       <div id="Content">
           <h5>$Title</h5>
          <div id="Surround">
          $LostPasswordForm
          </div>
       </div>
    </div>

    What should it be?

    Thanks

    Catherine

  • socks
    Avatar
    Community Member
    190 Posts

    Re: Forgotten Password Template Problem Link to this post

    This is all I have in my custom template for the Lost Password page. (if you wanted to customize your login page, it would be Security_login.ss)

    Security_lostpassword.ss

    <div id="content-body">
    <h1 id="page-title">$MenuTitle.XML</h1>
       $Content
    $Form
    </div>

  • mschiefmaker
    Avatar
    Community Member
    187 Posts

    Re: Forgotten Password Template Problem Link to this post

    Doh!

    Too busy looking for something complex, forgot the basics!!

    thank you, much appreciated

    Catherine

    2911 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.