Displaying selected tiddler in Sidebar

37 views
Skip to first unread message

skye riquelme

unread,
May 30, 2011, 9:25:06 PM5/30/11
to TiddlyWiki
Hi All

I frequently need to translate between english and portugues...and
have help in this from friends. So I want to use a TW that makes this
task easy...as much of the english to be translated is currently in
TWs anyway.

So, the idea is a TW with a normal display area and a second panel
(instead of SideBar) the same width. The idea is to open an english
tiddler in the second panel...and then use the main display to write
the translation.

So what I need.....
...first a FET or script that lists the english tidders (tagged
"english") and on clicking one..it opens in the tiddler in the second
panel - not the main display !!! (since I dont need / want to edit
it).......
...and secondly....opens the portugues translation of that english
tiddler in the main display window......obviously this portugues
tiddler can be tagged "portugues" and can be linked to the english one
through tags (the portugues could be tagged with name of the english
tiddler).....the two tiddlers are "paired up".
...and thirdly....if an english tiddler does not have a portugues
pair...the system then opens a new tiddler labelling it as "portugues"
and with the english tiddlers title - newHere does that...but how do I
insert that macro into the english tiddler (that is NOT being
displayed in the main display?) - can I put tiddler toolbars outside
the maindisplay???

Hope thats clear.

HELP
Thanks in Advance
Skye

skye riquelme

unread,
May 31, 2011, 3:22:31 PM5/31/11
to TiddlyWiki
Hi Folks

I have managed to resolve the management of the system. Maybe not as
neat as some other proposals could have been...but its working -

The english tiddlers get displayed in a TreeView format in a ShowPopup
panel.....when the user clicks on an item it open in the display
window...and a simple addition to the viewtemplate..sets a
config.option to the tiddler title value.....which the sidebar uses to
display the same tiddler. The display also has a simple button in the
toolbar that uses newHere to open a new tiddler, tagged with the
english tiddler name and the tag "portugues"....where the user writes
the translation.

If the user opens an english tiddler that already is partially
translated...the viewtemplate shows the name of the portugues pair
tiddler (thanks to a simple use of matchTagsPlugin).

So, its basically running as I wanted....maybe a bit
cumbersome.....but basically functional.

Thanks anyway
Skye

Måns

unread,
May 31, 2011, 3:46:04 PM5/31/11
to TiddlyWiki
Hi Skye

>...and a simple addition to the viewtemplate..sets a
> config.option to the tiddler title value.....which the sidebar uses to
> display the same tiddler. The display also has a simple button in the
> toolbar that uses newHere to open a new tiddler, tagged with the
> english tiddler name and the tag "portugues"....where the user writes
> the translation.
>
> If the user opens an english tiddler that already is partially
> translated...the viewtemplate shows the name of the portugues pair
> tiddler (thanks to a simple use of matchTagsPlugin).
>
> So, its basically running as I wanted....maybe a bit
> cumbersome.....but basically functional.

I've been thinking about your usercase - and Dave Giffords widescreen
TW came to mind.
He uses the MainMenu as a very wide container, and I saw a possible
route to take...
Your own solution appears to be somewhat more sophisticated - and
interesting indeed.

Would you consider to share a copy of your work in progress?
(tiddlyspot, dropbox, tiddlyspace or ...) - I'd love so see it in
action!

Cheers Måns Mårtensson

skye riquelme

unread,
Jun 6, 2011, 7:48:42 PM6/6/11
to TiddlyWiki
Hi Mans

Sorry to delay in responding.....you can see a copy of what I came up
with here - http://dl.dropbox.com/u/284644/Translating/Translating.html
- note that the portuguesplugin is still active...but if you click on
english (in the header) and then click on an englisg item you will be
the basic idea.

Thanks
Skye

Cyrill

unread,
Jun 7, 2011, 2:41:42 AM6/7/11
to TiddlyWiki
Hello,
sometthing brocken with the file ? - with firefox only a white site

Regards

On 7 Jun., 01:48, skye riquelme <riquelme.s...@gmail.com> wrote:
> Hi Mans
>
> Sorry to delay in responding.....you can see a copy of what I came up
> with here -http://dl.dropbox.com/u/284644/Translating/Translating.html

skye riquelme

unread,
Jun 8, 2011, 8:19:10 PM6/8/11
to TiddlyWiki
Hummmm

Just saw your message......very ineteresting.

In the interest of keeping things light on the loading I often use
MasterIncludesPlugin so that the plugins are all stored in a sepearte
file.....very handy when working locally.

So, when I open this TW as a local file in my Dropbox...it opens up
fine. When I open it using its URL........ blanck page!!!!!!

When I open it using its URL, and with Firebug activated what I get is
an error in the MasterIncludePlugin.js file (which is supposed to be
loading the plugins) -

the error message is " getXMLHttpRequest is not defined ", and the
line
"var XHR = getXMLHttpRequest();"

Anyone with good javascript able to tell me whats happening...and more
importantly how to fix it?

I have seen this before when trying to use MasterIncludes directly
from by server.............bit of a pity...MasterIncludes is a great
Plugin...but only works locally!!!!

Thanks
Skye

PS - Guess this should be a new thread. I will save the above TW
without MasterIncludes so you can see the TW.

Cyrill

unread,
Jun 9, 2011, 3:17:30 AM6/9/11
to TiddlyWiki
OK ,
it works fine, the right menu will follow, i suppose

TX

PMario

unread,
Jun 9, 2011, 3:57:59 AM6/9/11
to TiddlyWiki
Hi Skye,
I did some experimets with a "temporary side by side" display on my
TiddlySpace [1]. I use it to compare different tiddler revisions side
by side.

At the moment it is a quick and dirty hack, that just works for me.

To test it. Open 2/3 tiddlers and press a button described below.
The column behaviour is only applied to open tiddlers.
If you open a new one, it is full size. This is by intention, but
could be changed.

See the buttons in the left main menue
click for 2 columns
click for 3 columns
click for 1 column

Including the multi column view into the "Project Mashup" [2] that I
did some time ago, would be possible. If a TW like this would be of
use for some out there :)

-m
[1] http://pmario.tiddlyspace.com/
[2] http://a-project.tiddlyspot.com/

PMario

unread,
Jun 9, 2011, 4:03:02 AM6/9/11
to TiddlyWiki
Reply all
Reply to author
Forward
0 new messages