21491 Posts in 5783 Topics by 2621 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 606 Views |
-
Tutorial1: Question about "Adding a second level"

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" 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 "{$Title}" 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 "{$Title}" 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
-
Re: Tutorial1: Question about "Adding a second level"

3 April 2009 at 11:50am
Under the behaviors tab do your sub pages have the "Show in menus" option selected?
-
Re: Tutorial1: Question about "Adding a second level"

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. -
Re: Tutorial1: Question about "Adding a second level"

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...
| 606 Views | ||
|
Page:
1
|
Go to Top |


