=====Two Column Layout===== <Handler($this->GetHandler()); $sidebar_body = $this->Handler("sidebar"); print($this->Header()."
".$sidebar_body."
".$content_body."
".$this->Footer()); } } } ?> %% **handlers/sidebar/sidebar.php** Create a new directory under the ##handlers## directory called ##sidebar##, and then in the new directory create ##sidebar.php## and populate with the following contents. (I just noticed that the sidebar won't display if the user doesn't have read access...but then again, what would someone without read access use the sidebar for?) Also, you can change the SIDEBAR_CONTENT define to point to the Wikka page of your choice (currently, it's set to ##""SidebarContent""##). %%(php) GetSafeVar('raw', 'get') : SHOW_OLD_REVISION_SOURCE; //Load sidebar page $sidebar_page = $this->LoadPage(SIDEBAR_CONTENT); echo "\n".''."\n"; echo ''."\n"; } else { if (!$sidebar_page) { $createlink = ''.WIKKA_PAGE_CREATE_LINK_DESC.''; echo '

'.sprintf(SHOW_ASK_CREATE_PAGE_CAPTION,$createlink).'

'."\n"; echo ''."\n"; } else { if ($sidebar_page['latest'] == 'N') { $pagelink = ''.$sidebar_page['tag'].''; echo '
'."\n"; echo '

'.sprintf(WIKKA_REVISION_NUMBER, '['.$sidebar_page['id'].']').'

'."\n"; echo '

'; echo sprintf(SHOW_OLD_REVISION_CAPTION, $pagelink, $this->FormatUser($sidebar_page['user']), $this->Link($this->tag, 'revisions', $sidebar_page['time'], TRUE, TRUE, '', 'datetime')); // added if encapsulation: in case where some pages were brutally deleted from database if ($latest = $this->LoadPage($sidebar_page['tag'])) { ?>
FormOpen('show', '', 'GET', '', 'left') ?>   FormClose(); ?> HasAccess('write')) { ?> FormOpen('edit') ?> FormClose(); ?>

'; } // display page if ($raw == 1) { echo '
'.nl2br($this->htmlspecialchars_ent($sidebar_page["body"], ENT_QUOTES)).'
'; } else { echo $this->Format($sidebar_page['body'], 'wakka', 'page'); } //clear floats at the end of the main div echo "\n".''."\n\n"; } } ?> %% **css/wikka-2-column.css** The following changes can be made directly to ##templates/default/css/wikka.css##. Or, you can copy ##css/wikka.css## to ##css/wikka-2-column.css## and make the changes there. If you change the name of the CSS file, you'll need to make sure to change the following line in ##templates/default/header.php## from: %%(php) %% to: %%(php) %% In the ##body## selector, add the following at the end: %%(css) padding: 0; %% In the ## #header ## selector, add the following at the end: %%(css) border-bottom: 1px solid #CCC; %% Add the following to the start of the ## #footer ## selector: %%(css) clear: both; %% Replace contents of ##.page## selector with the following: %%(css) #page { margin: 5px; } %% Create the following new selectors: %%(css) .wrap { color: #000; background: white; margin:0 auto; } .page-container { color: #000; background: white; padding: 0px; margin-left: -1px; border-left: 1px solid #CCC; border-bottom: none; height: 100%; float: right; width: 75%; } /* Bug in IE causes following divs to "bleed over" into preceding * float, so width is a bit smaller than needed to prevent this. To * compensate, background of sidebar matches the body background, and * the header provides the border rather than the page and sidebar * containers. */ .sidebar-container { clear: both; color: #000; background: #f8f8f8; margin: 0px; padding: 0; border-bottom: none; height: 100%; float: left; width: 24.5%; } .sidebar { margin: 0 0 0 10px; } /* Keep the comments div from overflowing in the preceding sidebar * float */ div#comments { clear: both; } %% Unless I've forgotten something, that should be it! ---- CategoryLayout {{files}}