Where am I?

20 views
Skip to first unread message

Craig in Calgary

unread,
Mar 8, 2011, 3:20:47 PM3/8/11
to TiddlyWiki
As a technical communicator I am aware of the value of content reuse
through "chunking"; breaking down a body of information into
manageable parts that can stand alone or combined and recombined into
useful larger units. TiddlyWiki is an excellent medium for this
approach to information management. Tiddlers are the containers for
the smallest content blocks and renderers for combined content.

Editing is the challenge. Here is a hypothetical example of my nested
tiddler approach:
[[MainMenu]] contains:
*<<tiddler Favorites>>
*<<tiddler WikiMarkup>>
[[WikiMarkup]] contains:
*<<tiddler Headers>>
*<<tiddler Lists>>
[[Lists]] contains:
*<<tiddler Unordered>>
*<<tiddler Ordered>>
*<<tiddler Tables>>
*<<tiddler Research>>

When [[MainMenu]] renders I see all the notes in all the nested
tiddler quite nicely. But how to I edit [[Ordered]] or [[WikiMarkup]]
when I'm looking at [[MainMenu]]?

The solution I currently tolerate is to put {{{<<tiddler
tiddlerHeader>>}}} at the top of any tiddlers that hold "chunks" of
content. [[tiddlerHeader]] contains: {{{<<tiddler
ToggleSliders>>&#160;<<editTiddler>>}}}. The problem is that
{{{<<editTiddler>>}}} always opens the highest parent tiddler in the
chain, [[MainMenu]] in my example. I have tried various derivatives of
{{{<<tiddler tiddlerHeader with: {{tiddler.title}}>>}}} but always get
an error.

1. Does anyone have a better approach to chunking and editing? Keep in
mind that I want to open a tiddler for editing directly, not open it
to view first. If that were the case then [[ToolbarCommands]] in
[[ViewTemplate]] would suffice. Nested [[ViewTemplate]]s would be
great, e.g. [[ToolbarCommands]] or a simplified version at the start
of each nested tiddler, but I can't imagine how to implement that.

2. How can I pass the title of the tiddler I am editing into
{{{<<tiddler...>>}}} or {{{<<editTiddler>>}}}? In addition to this
scenario, I have several other contexts where I would prefer to reuse
some kind of code that would evaluate to the name of the current
tiddler so I do not have to specify the tiddler name. For example:

/%
|''Description:''|blah, blah, blah|
|''Benefits:''|<<tiddler TIDDLER_TITLE##Highlights>>|
%/
/%
!Highlights
*stuff
!end
%/

In this example I want to only have to edit the Description line and
the hidden Highlights section, not the Benefits line.

Any help and/or brainstorming would be appreciated.

Måns

unread,
Mar 8, 2011, 6:08:29 PM3/8/11
to TiddlyWiki
Hi Craig

> But how to I edit [[Ordered]] or [[WikiMarkup]]
> when I'm looking at [[MainMenu]]?
>
> 1. Does anyone have a better approach to chunking and editing? Keep in
> mind that I want to open a tiddler for editing directly, not open it
> to view first. If that were the case then [[ToolbarCommands]] in
> [[ViewTemplate]] would suffice. Nested [[ViewTemplate]]s would be
> great, e.g. [[ToolbarCommands]] or a simplified version at the start
> of each nested tiddler, but I can't imagine how to implement that.

Eric's EditSectionPlugin http://www.tiddlytools.com/#EditSectionPlugin
lets you edit sections in embedded tiddlers and all of it at once, and
you don't have to leave the parenttiddler at all.. It's done via a
popup - and QuickEditPlugin (if installed and activated) will appear
in the popup! (not all tools work though...)
<<editSection [[SomeTiddlerTitle##SomeSection]][[edit SomeSection in
SomeTiddlerTitle]]> ><<editSection [[SomeTiddlerTitle]][[edit all of
SomeTiddlerTitle's content at once]]> >
I often use Eric's PasteUpPlugin http://www.tiddlytools.com/#PasteUpPlugin
and EditSectionPlugin in conjunction - this enables free positioning
of embedded elements(and tiddlers) AND editing, just by clicking the
embedded object...
It's very easy and intuitive - please check them out :-)

Eric even made a quickstartdocument which features PasteUpPlugin and
EditSectionPlugin here: http://www.tiddlytools.com/quickstart/pasteup.html

Cheers Måns Mårtensson

Kosmaton

unread,
Mar 9, 2011, 9:33:07 AM3/9/11
to tiddl...@googlegroups.com
Hello,

Not to distract from Craig's specific questions, which I fear I can't
answer, but I think this is related. Is there some accepted way to make
it visually apparent that part of a tiddler is in fact a transclusion?

If I have a CoolBeasts tiddler saying

Cats are cool. <<tiddler CoolDogs>>

to result in

Cats are cool. Dogs are cool.

I'd want there to be some subtle sign that the second phrase is
transcluded, as well as a way to open the CoolDogs tiddler and -
following Craig - edit it directly. (Say, a faint dotted underlining,
with small 'view' and 'edit' buttons. Maybe something indicating nesting
depth.) Ideally this functionality would be associated with the
transclusion itself. So I wouldn't have to add it to every tiddler or
section I might want to transclude as in Craig's attempt (I believe -
can't get it to work), nor have to manually add it in the transcluding
tiddler for every transclusion (as with EditSectionPlugin). There
wouldn't be big buttons breaking the text flow either.

So maybe we are talking about a sort of <<tiddler_interactive>> macro
for this type of transclusion? And a parallel <<slider_interactive>> ?
Has this been done?

Kosmaton

whatever

unread,
Mar 9, 2011, 10:35:00 AM3/9/11
to TiddlyWiki
Try http://tiddlywiki.squize.org/#TiddlerWithEditPlugin
Double-click on text in transcluded tiddler to open that tiddler
directly for editing.

w

Jeremy Ruston

unread,
Mar 9, 2011, 11:37:23 AM3/9/11
to tiddl...@googlegroups.com, whatever
Transcluded tiddlers are rendered inside a span like this:

<span refresh="content" tiddler="SomethingOrOther">
...wikified content
</span>

Therefore, at least on modern browsers, it ought to be possible to at
least add a dotted border around all transcluded text:

span[refresh="content"] {
border: 1px dotted red;
}

You'd need something like Eric's plugin to go further and add the edit buttons.

Best wishes

Jeremy

> --
> 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.
>
>

--
Jeremy Ruston
mailto:jer...@osmosoft.com
http://www.tiddlywiki.com

Kosmaton

unread,
Mar 9, 2011, 2:42:28 PM3/9/11
to tiddl...@googlegroups.com
Craig, I think http://www.tiddlytools.com/#SectionLinksPlugin may
help with your second issue.

whatever, good find -- however using TiddlerWithEditPlugin would make it
even more important to be able to distinguish the transclusions; Jeremy,
your solution to this works partially, but in the PageTemplate I'm using
(NeUIem - based) there are a few elements that use [refresh="content"]
so unfortunately they get the border too. I guess changing their <span>
tags into <div> might help... not sure how much risk there is to run
into other undesired cases.

cheers,

Kosmaton

Craig in Calgary

unread,
Mar 10, 2011, 9:50:33 AM3/10/11
to TiddlyWiki
> Transcluded tiddlers are rendered inside a span like this:
> ...
> Therefore, at least on modern browsers, it ought to be possible to at
> least add a dotted border around all transcluded text:
>
> span[refresh="content"] {
>         border: 1px dotted red;

Is it possible to hijack the <<tiddler...>> core macro and wrap
@@border: 1px dotted red;...rendered content...@@ around it?

I haven't tried it but the next best solution might be a new
transclusion tiddler, borderedTiddler, with:
@@border: 1px dotted red;<<tiddler $1>>@@

PMario

unread,
Mar 10, 2011, 1:47:01 PM3/10/11
to TiddlyWiki
I didn't read the whole thread.

> Is it possible to hijack the <<tiddler...>> core macro and wrap
> @@border: 1px dotted red;...rendered content...@@ around it?

<<tiddler MyTiddler 'anyClassName'>>

StyleSheet
.anyClassName {
border: 1px dotted red;
}

should do it.
-m
Reply all
Reply to author
Forward
0 new messages