[pmwiki-users] action bar
Mike Bishop
mbishop at mtaonline.net
Sun Jun 3 13:57:20 CDT 2007
On Sun, Jun 03, 2007 at 11:32:48AM -0400, Marguerite Floyd wrote:
> I asked this before but got myself so confused with everyone's helpful
> answers I gave up . . . .
>
> I'm using the Barthelme template. The action bar (View, Edit,
> History, Print) is at the bottom right of the sidebar.
>
> I want it to be at the top right of the content boxes.
>
> I know very little HTML, but I do know how to copy and paste, and how
> to type in code. The only recipes I can find talk about tabs and so
> on, but I can't find anything that addresses what I want.
>
> Thanks for the 23rd millionith time!
>
Okay, I'll try, but I'm not an expert.
First, in ../pub/skins/barthelme edit the .tmpl file:
move the line <!--wiki:Site.PageActions--> [line 42]
just below
<div id='content' class='widecolumn'> [line 27]
so it now look like--
<div id='container'>
<div id='content' class='widecolumn'>
<!--wiki:Site.PageActions-->
<!--PageText-->
</div>
</div>
Remove the
<li>
<h2>Actions</h2>
</li>
from the sidebar.
Test; this will give you a nice menu above the page content
left aligned to the sidebar.
To right align takes more work. I got it to work by
adding
#headright {
white-space:nowrap;
text-align:right;
}
after line 127 in the barthelme.css file.
Then, in the barthelme.tmpl file change the section "container"
to look like this--
div id='container'>
<div id='headright'>
<!--wiki:Site.PageActions-->
</div>
<div id='content' class='widecolumn'>
<!--PageText-->
</div>
</div>
This in inelegant but works in my quick tests (I don't use
the barthelme skin, but it looks attractive).
Personally, I think it looks better aligned left :-)
Rgds,
--
Mike Bishop
Willow, Alaska
More information about the pmwiki-users
mailing list