Jump to:

23483 Posts in 18976 Topics by 2878 members

General Questions

SilverStripe Forums » General Questions » domain.com/admin || Log-in boxes missing, F5 and they appear

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Page: 1
Go to End
Author Topic: 704 Views
  • borriej
    Avatar
    Community Member
    267 Posts

    domain.com/admin || Log-in boxes missing, F5 and they appear Link to this post

    Hello,

    When you look at my website: http://www.url.nl/admin

    it wont show the log-in boxes when the page is loaded.

    After you refresh it (F5) it does show them. Using SS 2.3.7

    This happens on all my websites, why does this happen?

    When I click, lost password they dont show at all.

    Please help!
    Ty!

  • martimiz
    Avatar
    Forum Moderator
    1086 Posts

    Re: domain.com/admin || Log-in boxes missing, F5 and they appear Link to this post

    In your Themes/... /Layout/Page.ss, somewhere near/below $Content, do you have the $Form variable present?

  • borriej
    Avatar
    Community Member
    267 Posts

    Re: domain.com/admin || Log-in boxes missing, F5 and they appear Link to this post

    No, because in the normal template/website i dont want the forms to be visible.

    If I place a $Form in the Page.ss template will the site always show the log-in box? I only want it visible when people visit the domain.com/admin part of the site.

    What must I do?

    page.ss looks like this:

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
    <html>
    <head>
    <meta http-equiv="content-type" content="text/html;charset=utf-8">

          <% base_tag %>
          <title><% if MetaTitle %>$MetaTitle<% else %>$Title<% end_if %> &raquo; </title>
          $MetaTags(false)
          <link rel="shortcut icon" href="/favicon.ico" />
          <link rel="stylesheet" type="text/css" href="../css/layout.css" />

          <% require themedCSS(layout) %>
          <% require themedCSS(typography) %>
          <% require themedCSS(form) %>
          
          <script type="text/javascript" src="../../../swfobject/swfobject.js"></script>
          <link rel="stylesheet" href="litebox/css/lightbox.css" type="text/css" media="screen" />
          <script type="text/javascript" src="litebox/js/prototype.lite.js"></script>
          <script type="text/javascript" src="litebox/js/moo.fx.js"></script>
          <script type="text/javascript" src="litebox/js/litebox-1.0.js"></script>   
             
    </head>

    <body onload="initLightbox()">

    <div id="topWrapper" class="clearfix">
       <div id="topLogo">
       </div>
    <div id="topMenu" class="clearfix">
          <% include topMenu %>
       </div>
    </div>

    <div id="pagewidthWrapper" class="clearfix">

    <div id="LeftMenu">

          <div id="Navigation">
             <% include Menu %>
       </div>
          
          <div id="brandHolder">
             <% include BrandNames %>
          </div>
          
    </div>

       <div id="twoCols" class="clearfix">
          <div id="MidContentWrapper">
          
                   <div id="MidContentWrapper_smaller">
                      <div style="margin-left:-2px;">
                      
                         <div class="typography">
                            <h1>$Title</h1>
                            <h2>$SubTitel</h2>
                         </div>
                         
                      </div>
                      
                      <div class="typography">
                         $Content
                      </div>
                   </div>
          </div>
          
          <div id="RightMenu">
                   <div id="RightWrapper">
                   
                      <% include RightMenuBar %>
                                  
                   </div>
          </div>
          
       </div>
          
    </div>

    </body>
    </html>

  • martimiz
    Avatar
    Forum Moderator
    1086 Posts

    Re: domain.com/admin || Log-in boxes missing, F5 and they appear Link to this post

    You can just leave the $Form in. SilverStripe won't go haphazzardly showing all kinds of forms Just try and find out what happens (don't forget to $flush=1)

  • borriej
    Avatar
    Community Member
    267 Posts

    Re: domain.com/admin || Log-in boxes missing, F5 and they appear Link to this post

    Wow Martimiz! You really helped me out today with all my questions!! Thank you so much, this also worked

    704 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.