Editing/showing tiddlers side by side

533 views
Skip to first unread message

Claudio

unread,
Jul 21, 2010, 1:39:58 AM7/21/10
to TiddlyWiki
Hi All,

Is is possible not to show tiddlers one after another but side by
side, so when I open tiddler 1, it's shown on the left, then tiddler 2
is shown to the right of tiddler 1. Tiddler 3 then appears below
tiddler 1, tiddler 4 opens below tiddler 2, etc.

I'm using it for translation purpose. I can open a tiddler on the
left, and do translation on the right tiddler.

I think will need to hide MainMenu and the right sidebar to create
space...

PMario

unread,
Jul 21, 2010, 7:14:09 AM7/21/10
to TiddlyWiki
Hi Claudio,
I guess, there are 2 versions needed?
1) eg:
english text viewed | any text viewed

2)
english text viewed | any text edit
right?

I have done both versions allready, but with two different
tiddlywikis. If you tell me, if the above is right, I can give you
some more pointers for edit mode. What I would do is, to have special
names for the tiddlers. eg: Tiddler1 (original) and Tiddler1_fr
Tiddler1_ge Tiddler1_?? for different languages. Or if you want to
keep them together for lists: en_Tiddler1 (original) fr_Tiddler1,
ge_Tiddler1 ... (Erics Goto plugin will give good search results)

ad 1)
Have a look at:
http://geneology.tiddlyspot.com/#MeTwo

multi columns done with:
http://geneology.tiddlyspot.com/#MaloStyleSheet

viewtemplate done with:
http://geneology.tiddlyspot.com/#GeneologyViewTemplate

regards Mario

FND

unread,
Jul 21, 2010, 7:51:26 AM7/21/10
to tiddl...@googlegroups.com
> Is is possible not to show tiddlers [...] side by side

This might be of interest:
http://fnd.lewcid.org/tmp/PIMTheme.html
http://groups.google.com/group/tiddlywiki/browse_thread/thread/52c4f2c7700ad669

"""
Note that what appears to be story columns are just floated tiddlers,
which is hardly suitable for regular use.
"""

If you open more than two tiddlers at a time, things can become
confusing, as it's not predictable which column they're gonna appear in.


-- F.

PMario

unread,
Jul 21, 2010, 6:41:23 PM7/21/10
to TiddlyWiki
FND,
Thats cool.

Had to test some jQuery [1] magic and generate a Temporary SideBySide
view. Which doesn't really solve Claudio's problem, but it also needs
no Template tweaking. Buttons can be placed in main menue or sidebar
by <<tiddler [[Temporary SideBySide##Code50]]>>. And if I'd include
jQueryUI, sortable would be only some lines more.

InlineJavascriptPlugin and MaloStyleSheet is used.

-m
http://hoster.peermore.com/recipes/TeamWork/tiddlers.wiki#[[Temporary%20SideBySide]]

On Jul 21, 9:51 am, FND <F...@gmx.net> wrote:
> > Is is possible not to show tiddlers [...] side by side
>
> This might be of interest:http://fnd.lewcid.org/tmp/PIMTheme.htmlhttp://groups.google.com/group/tiddlywiki/browse_thread/thread/52c4f2...

Eric Shulman

unread,
Jul 21, 2010, 7:02:27 PM7/21/10
to TiddlyWiki
> FND,
> Thats cool.

Try this transclusion:

http://www.TiddlyTools.com/#SetTiddlerColumns

no inline scripts, no stylesheet... setting is tracked in standard
TiddlyWiki option, and can be hard-coded with simple "CookieJar"
statement:

config.options.txtTiddlerColumns='1';

Note that, because SetTiddlerColumns is a *transclusion*, it's
functionality is only invoked when it is *rendered* somewhere in your
document by "transcluding" (i.e., embedding) it via the <<tiddler>>
macro.

For example, you could add the following to your [[MainMenu]]:
<<tiddler SetTiddlerColumns>>
Because MainMenu content is always rendered during startup, embedding
the transclusion there ensures that it is invoked as soon as the
document
is loaded, so that the initial display state, based on a previously
stored option value, is actually applied.

Note also that, if you like, you can enclose the <<tiddler>> macro
within a tiny bit of CSS, so that the functionality will still be
applied and the desired number of tiddler columns is used, but there
will be no net change in the appearance of the MainMenu
@@display:none;<<tiddler SetTiddlerColumns>>@@

enjoy,
-e

Claudio Li

unread,
Jul 22, 2010, 2:13:08 AM7/22/10
to tiddl...@googlegroups.com
Thank all for your help!

FND's SideBySide code works best for me, as I want two tiddlers to appear side by side and have their titles appearing on the top of each column.

SetTiddlerColumns is easier to use, yet it "spreads" long tiddlers across columns, this is want I don't want.

Claudio
Message has been deleted

Tobias Beer

unread,
Jul 22, 2010, 9:53:23 AM7/22/10
to TiddlyWiki
I think this deserves a script in its own right. I have started by
making a simple example... however, it is lacking editing
capabilities:

http://translate.tiddlyspot.com/


Please tell me,

1) if you find the approach useful
2) if - before I start digging into it - you already have an elegant
solution to the "custom edit mode" problem

Tobias.

Claudio Li

unread,
Jul 23, 2010, 1:33:38 AM7/23/10
to tiddl...@googlegroups.com
I appreciate the idea of having a field that tells where's the translation. The table approach is elegant, yet I guess it's difficult to make just one half of the table (the Français part in the example) editable.

To clarify a bit more, here's my imagined workflow:

1. Open the source tiddler.

2. Click a button say called "Translate this tiddler".

3. Now a new tiddler with identical content to the source tiddler is displayed to the right of the source tiddler. The default title will be "Title of source tiddler-Translation 1". Suppose I will translate the title into another language. A link to the source tiddler is automatically filled in a custom field say called "Source Tiddler:".

4. Start translation by leaving the source tiddler in VIEW mode but the translation tiddler in EDIT mode.

5. When I open a tiddler with a translation for viewing, there's an additional button called "View translation". (so there will be two buttons "Translate this tiddler" and "View translation")

Further enhancements may be to ensure that both source tiddler and translation tiddler are linked some way that modifying title of one of them will not break the linkage.

Claudio

--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To post to this group, send email to tiddl...@googlegroups.com.
To unsubscribe from this group, send email to tiddlywiki+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/tiddlywiki?hl=en.


Reply all
Reply to author
Forward
0 new messages