Jump to:

22997 Posts in 11620 Topics by 2827 members

General Questions

SilverStripe Forums » General Questions » Sub Pages Help

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: 610 Views
  • maxistaxis
    Avatar
    Community Member
    2 Posts

    Sub Pages Help Link to this post

    I have had my website for a while now but still cannot work out how to get sub pages!

    When I am in the admin part of my website I can see them and I am able to edit the content but when viewing my webpage they don't seem to exist.

    I should point out that I have extremely little knowledge on websites etc so there may be a very simple solution!

  • swaiba
    Avatar
    Forum Moderator
    1769 Posts

    Re: Sub Pages Help Link to this post

    Hi maxistaxis,

    Which theme are you using?

  • maxistaxis
    Avatar
    Community Member
    2 Posts

    Re: Sub Pages Help Link to this post

    Thanks for your reply, I am using the higherground theme.

  • swaiba
    Avatar
    Forum Moderator
    1769 Posts

    Re: Sub Pages Help Link to this post

    compare that with the black candy theme for layout/Page.ss.

    There should be something like...

    <% include SideBar %>


    this says "include side bar" (err, yeah), then in includes/SidBar.ss there should be something like...

    <ul id="Menu2">
                 <% control Menu(2) %>
                  <% if Children %>
                     <li class="$LinkingMode"><a href="$Link" title="Go to the $Title.XML page" class="$LinkingMode levela"><span><em>$MenuTitle.XML</em></span></a>
                  <% else %>
                       <li><a href="$Link" title="Go to the $Title.XML page" class="$LinkingMode levela"><span><em>$MenuTitle.XML</em></span></a>
                   <% end_if %>   
                 
                    <% if LinkOrSection = section %>
                       <% if Children %>
                         <ul class="sub">
                            <li>
                               <ul class="roundWhite">
                                  <% control Children %>
                                     <li><a href="$Link" title="Go to the $Title.XML page" class="$LinkingMode levelb"><span><em>$MenuTitle.XML</em></span></a></li>
                                  <% end_control %>
                               </ul>
                            </li>
                         </ul>
                        <% end_if %>
                   <% end_if %>
                </li>
                 <% end_control %>
              </ul>
             <div class="clear"></div>


    and this code says, for each child page show a link (and if current page is one of these children, then show it's children too).

    My guess is that higher ground doesn't implement this...

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