21307 Posts in 5737 Topics by 2603 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, Howard, Sean, Ryan M., biapar, Willr, Ingo, swaiba, simon_w
|
Page:
1
|
Go to End | |
| Author | Topic: | 421 Views |
-
domain.com/admin || Log-in boxes missing, F5 and they appear

4 May 2010 at 11:00pm Last edited: 11 August 2010 9:19am
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! -
Re: domain.com/admin || Log-in boxes missing, F5 and they appear

5 May 2010 at 1:50am
In your Themes/... /Layout/Page.ss, somewhere near/below $Content, do you have the $Form variable present?
-
Re: domain.com/admin || Log-in boxes missing, F5 and they appear

5 May 2010 at 2:17am Last edited: 5 May 2010 2:18am
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 %> » </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> -
Re: domain.com/admin || Log-in boxes missing, F5 and they appear

5 May 2010 at 2:41am
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) -
Re: domain.com/admin || Log-in boxes missing, F5 and they appear

5 May 2010 at 4:05am
Wow Martimiz! You really helped me out today with all my questions!! Thank you so much, this also worked
| 421 Views | ||
|
Page:
1
|
Go to Top |
