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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

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

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

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


Go to End


5 Posts   1114 Views

Avatar
borriej

Community Member, 267 Posts

4 May 2010 at 11:00pm

Edited: 11/08/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!

Avatar
martimiz

Forum Moderator, 1391 Posts

5 May 2010 at 1:50am

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

Avatar
borriej

Community Member, 267 Posts

5 May 2010 at 2:17am

Edited: 05/05/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 %> &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>

Avatar
martimiz

Forum Moderator, 1391 Posts

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)

Avatar
borriej

Community Member, 267 Posts

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 :D