more than 2 menu areas?

3 views
Skip to first unread message

spacev...@gmail.com

unread,
Feb 12, 2008, 5:04:43 PM2/12/08
to TiddlyWiki
I am using MonkeyPiratTW as a base, and added several extensions -
although I hope that my question is not bound by my choice of
lineage...

The current config has the sidebar on the right, and the MainMenu on
top.

What I'd really like is to have something like a 3rd fixed area, on
the left side of the main area (where the tiddlers are displayed when
open) to show some content as I chose.

Is this possible, and how can I do this?
Is there a TW out there where I could go and grab the respective style
sheet and page template info from?

I'm hoping that a nudge in the right direction will show the way --
assuming this is possible in the first place.

I've played around w/ the MoveablePanel plugin, but it's not quite
what I was looking for.

TIA,
-Juergen

FND

unread,
Feb 12, 2008, 5:30:09 PM2/12/08
to Tiddl...@googlegroups.com
> What I'd really like is to have something like a 3rd fixed area, on
> the left side of the main area (where the tiddlers are displayed when
> open) to show some content as I chose.

This is a bit hard to say without seeing your actual modifications.
Let's try the following (I started with a blank MPTW*)...

In your [[MptwPageTemplate]], find the following line:
---------------
<!-- <div id='mainMenu' refresh='content' tiddler='MainMenu'></div> -->
---------------
... and replace it with something like this:
---------------
<div id='mainMenu' refresh='content' tiddler='NavMenu'></div>
---------------

Then add the following to your [[StyleSheet]]:
---------------
#displayArea {
margin-left: 14em;
}
---------------

Next, create a new tiddler [[NavMenu]], and put in there whatever
content you want on the left-hand side.

HTH.


-- F.


* http://mptw.tiddlyspot.com/empty.html

spacev...@gmail.com

unread,
Feb 12, 2008, 6:02:04 PM2/12/08
to TiddlyWiki
thank you, FND - this worked - I now have a LeftMenu tiddler that
allows me to put there what I need.

the default font the tiddler showed in was tiny -- I added a 'style'
segment to the <div> for it to fix the issue - could not determine
where the
tiny default came from to change it there....

thanks for the quick help, impressed as always how quickly
answers come back in this forum !!!
-Juergen

FND

unread,
Feb 13, 2008, 3:36:03 AM2/13/08
to Tiddl...@googlegroups.com
> the default font the tiddler showed in was tiny -- I added a 'style'
> segment to the <div> for it to fix the issue - could not determine
> where the tiny default came from to change it there....

Rather than using the presentational "style" attribute, you should add
the CSS code to your StyleSheet. Among other things, this will make it
easier to modify later on.
We defined the element's ID as "mainMenu", so the corresponding CSS
selector and rule set would look like this:
#mainMenu {
font-size: 0.9em;
}

HTH.


-- F.

spacev...@gmail.com

unread,
Feb 13, 2008, 9:30:49 PM2/13/08
to TiddlyWiki
much better - thanks!
Reply all
Reply to author
Forward
0 new messages