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.

General Questions /

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

Sub Pages Help


Reply


4 Posts   731 Views

Avatar
maxistaxis

Community Member, 2 Posts

8 July 2011 at 11:30pm

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!

Avatar
swaiba

Forum Moderator, 1808 Posts

8 July 2011 at 11:39pm

Hi maxistaxis,

Which theme are you using?

Avatar
maxistaxis

Community Member, 2 Posts

8 July 2011 at 11:59pm

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

Avatar
swaiba

Forum Moderator, 1808 Posts

9 July 2011 at 12:13am

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