Skip to content

How do I make the sidebar appear? #645

Discussion options

You must be logged in to vote

learning by doing is fantastic, but can be a steep curve

I will throw you a few crumbs to help the learning....

it looks like you are doing everything correctly again - well done...
on a brief investigation - it looks like the default theme doesnt include sidebar... ( fyi @markseu )
{...or navigation-tree as you discovered already}

try berlin theme which includes sidebar layout (see berlin-default.html)

and the basic code that brings it in
<?php echo $this->yellow->page->getPage("sidebar")->getContent() ?>

p.s: you should of course include a check to make sure a sidebar page exists - or your site may break when there was none

Replies: 2 comments 9 replies

Comment options

You must be logged in to vote
8 replies
@nzyeehaa
Comment options

@cellio
Comment options

@nzyeehaa
Comment options

@cellio
Comment options

@tikita
Comment options

Answer selected by annaesvensson
Comment options

You must be logged in to vote
1 reply
@tikita
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
5 participants