Jump to:

23551 Posts in 19348 Topics by 2891 members

General Questions

SilverStripe Forums » General Questions » Tutorial1: Question about "Adding a second level"

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

Page: 1
Go to End
Author Topic: 878 Views
  • speedooo
    Avatar
    Community Member
    11 Posts

    Tutorial1: Question about "Adding a second level" Link to this post

    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 &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

  • speedooo
    Avatar
    Community Member
    11 Posts

    Re: Tutorial1: Question about "Adding a second level" Link to this post

    please help,

  • designerdre
    Avatar
    Community Member
    19 Posts

    Re: Tutorial1: Question about "Adding a second level" Link to this post

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

  • speedooo
    Avatar
    Community Member
    11 Posts

    Re: Tutorial1: Question about "Adding a second level" Link to this post

    "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.

  • banal
    Avatar
    Community Member
    901 Posts

    Re: Tutorial1: Question about "Adding a second level" Link to this post

    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...

    878 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.