Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

General Questions

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 || Log-in boxes missing, F5 and they appear


5 Posts   711 Views


4 May 2010 at 11:00pm (Last edited: 11 August 2010 9:19am), Community Member, 267 Posts


When you look at my website:

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!


5 May 2010 at 1:50am Forum Moderator, 1091 Posts

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


5 May 2010 at 2:17am (Last edited: 5 May 2010 2:18am), Community Member, 267 Posts

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

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

What must I do? looks like this:

<meta http-equiv="content-type" content="text/html;charset=utf-8">

      <% base_tag %>
      <title><% if MetaTitle %>$MetaTitle<% else %>$Title<% end_if %> &raquo; </title>
      <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>   

<body onload="initLightbox()">

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

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

<div id="LeftMenu">

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

   <div id="twoCols" class="clearfix">
      <div id="MidContentWrapper">
               <div id="MidContentWrapper_smaller">
                  <div style="margin-left:-2px;">
                     <div class="typography">
                  <div class="typography">
      <div id="RightMenu">
               <div id="RightWrapper">
                  <% include RightMenuBar %>



5 May 2010 at 2:41am Forum Moderator, 1091 Posts

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)


5 May 2010 at 4:05am Community Member, 267 Posts

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