<div class="rightHandSide">
Your wiki formatted text goes here.
</div>
Note: If you are using Markdown formatting, include the attribute markdown="1" in the <div> tag
This can be fixed/enhanced using:
<nowiki>
<div class="rightHandSide">
Your wiki formatted text goes here.
</div>
</nowiki>
When in the /published/ version (read only mode): links in the side bar still point to the /show/ version (editable mode).
The include-chunk (which is responsible to include other pages) creates a new PageRenderer and uses ‘display_content’ instead of ‘display_published’.
FIX Lamerish but just use:
<a href="page_name">Page Name</a>
Make sure to have two blank lines after the closing </div> tag!
At the start of any page you wish to include the sidebar, place the following:
[[!include menu]]
Note: Updates to the included page should automatically propagate to including pages, at least as of the current instiki (0.19.1 as of this writing). I haven’t confirmed this personally.
You can replace menu with the name of the page you created for your sidebar. The menu for this site is Home Nav. Click “edit” to see how it’s done, and take a look at the source of the Home Nav page as well.
Another Note: This trick has the unfortunate side effect of making the “Linked from” section at the bottom of the page pretty useless, because every page that includes the sidebar will show up as a referring page for every item in the Menu. Until someone adds a sane “header” or “sidebar” feature to Instiki, a quick way to disable the “Linked from” section completely is to modify the source file app/models/page.rb. I changed the definition of the method linked_from by commenting out the real code and inserting the line return [] which causes the program to recognize no referring pages whatsoever. This is ugly as sin, and no doubt breaks the test suite too, but so far it hasn’t hurt my wiki a bit.