Sample Sections

To get you started, here are some samples to create the different sections.

Header

This is the top of the screen that will appear on every page. Here is how you can put a simple text header.

<div class=left_block>

h1. MaxWiki Software

</div>

<%= login_block %>

Menu

There is some special code that is added for the Admin tab. You can see this by editing the menu bar and then selecting the 'Source' editing option. The code looks like this:


<li>
<div style="display: none;" class="role_Admin"><a href="/_action/reg_admin">Admin</a></div>
</li>

Sample menu code looks like this:

<ul>
<li><a href="/" class="existing_page_link">Home</a></li>
<li><a href="/Technical">Technical</a></li>
<li><a href="/CaseStudies">Case Studies</a></li>
<li><a href="/Links">Links</a></li>
<li><a href="/About+Us">About Us?</a></li>
<li><a href="/Contact+Us">Contact Us?</a></li>
<li><a href="/_action/user">My Account</a></li>
<li>
<div style="display: none;" class="role_Admin"><a href="/_action/reg_admin">Admin</a></div>
</li>
</ul>

Left Menu

The menu bar at the top is the same for every page. So if you want to have sub-menus, the best place for them is in the left column. To implement a left menu. first create a page with something like “_left_menu” appended. So for instance, if you are creating a sub-menu for the Editing pages, it could be called “Editing_left_menu” and contain something like:

<%= breadcrumb "HomePage|Home", "Editing" %>

<hr>

<%= left_menu(
"Editing Overview|Editing",
"Emails|Editing Emails",
"Pictures|Editing Pictures",
"Maps|Editing Maps")
%>

(Note: To create a page like this, just type the name in the address bar after the URL, something like: *http://www.maxwiki.com/Editing_left_menu”.)

Now on every page that you want the left menu to appear, click on the edit icon in the left column (which will create something like “Editing_left” and add: