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

Tutorial1: Question about "Adding a second level"


Go to End


5 Posts   1626 Views

Avatar
speedooo

Community Member, 11 Posts

2 April 2009 at 5:16pm

All working except this section:
Here is my Page.ss
-----------------------------------------
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" >
<head>
<% base_tag %>
$MetaTags
<link rel="stylesheet" type="text/css" href="tutorial/css/layout.css" />
<link rel="stylesheet" type="text/css" href="tutorial/css/typography.css" />
<link rel="stylesheet" type="text/css" href="tutorial/css/form.css" />
</head>
<body>
<div id="Main">
<ul id="Menu1">
<% control Menu(1) %>
<li class="$LinkingMode"><a href="$Link" title="Go to the &quot;{$Title}&quot; page">$MenuTitle</a></li>
<% end_control %>
</ul>
<div id="Header">
<h1>$Title</h1>
</div>
<div id="ContentContainer">
<% if Menu(2) %>
<ul id="Menu2">
<% control Menu(2) %>
<li class="$LinkingMode"><a href="$Link" title="Go to the &quot;{$Title}&quot; page">$MenuTitle</a></li>
<% end_control %>
</ul>
<% end_if %>

<div id="Content" class="typography">
<% if Level(2) %>
<div class="breadcrumbs">
$Breadcrumbs
</div>
<% end_if %>
$Content
$Form
</div>
</div>
<div id="Footer">
<span>Visit <a href="http://www.silverstripe.com" title="Visit www.silverstripe.com">www.silverstripe.com</a>; to download the CMS</span>
</div>
</div>
$SilverStripeNavigator
</body>
</html>
---------------------------

Q1: menu2 is on the top of content not on the left handside?
Q2: What's "Breadcrumbs", where is it under tutorial dir?

thanks

Avatar
speedooo

Community Member, 11 Posts

3 April 2009 at 10:03am

please help,

Avatar
designerdre

Community Member, 19 Posts

3 April 2009 at 11:50am

Under the behaviors tab do your sub pages have the "Show in menus" option selected?

Avatar
speedooo

Community Member, 11 Posts

3 April 2009 at 12:05pm

"Show in menus" is selected by default. I did change anything.
The menus are displayed in the page, just the position is not right.

I think should be left handside of page, but it's on the top of my content( below navigation menu), in my case.

Q2, fixed by found BreadCrumbs.ss in blackcandy theme, then copy/past to tutorial/template/Includes.
Have to change anywhere use this to
<% include BreadCrumbs %> , because it's case sensitive.

Avatar
bummzack

Community Member, 904 Posts

3 April 2009 at 7:48pm

Apparently there's a problem with the CSS styling of the menu. Did you change anything in the css files? Maybe you should provide us with a link if you need help with that...