Editing section-by-section

110 views
Skip to first unread message

jarble

unread,
Jul 26, 2009, 11:50:38 AM7/26/09
to TiddlyWiki
Is there a plugin that makes it possible to edit TddlyWiki tiddlers
section-by-section, like a MediaWiki website?
-Jarble

wolfgang

unread,
Jul 26, 2009, 12:19:54 PM7/26/09
to TiddlyWiki
Sorry, there isn't.

Mark S.

unread,
Jul 26, 2009, 1:23:33 PM7/26/09
to TiddlyWiki
You could put each section in a separate tiddler, and then view them
together using the <<tiddler ...>> macro.

-- Mark

jarble

unread,
Jul 26, 2009, 3:42:43 PM7/26/09
to TiddlyWiki
The <<tiddler>> macro works fine, but it is different from MediaWiki's
layout because it doesn't place an "edit" button at the top of each
section. I'm trying to find a version of TiddlyWiki that allows
sections of pages to be edited in the same way as MediaWiki pages.

Ken Girard

unread,
Jul 26, 2009, 3:58:52 PM7/26/09
to TiddlyWiki
I think http://tiddlytools.com/#EditTiddlerPlugin will do what you
want if used in conjunction with <<tiddler tiddlerTitle>>.
Just put <<editTiddler TiddlerName linktext>> in the other tiddlers.
Maybe even hook it up with HideWhen.

Ken Girard

Eric Shulman

unread,
Jul 26, 2009, 4:31:57 PM7/26/09
to TiddlyWiki
> I think http://tiddlytools.com/#EditTiddlerPlugin will do what you
> want if used in conjunction with <<tiddler tiddlerTitle>>.

... and, to make the usage easier to apply, you can define a separate
tiddler containing the combined syntax and then apply a 'substitution
parameter' in the tiddler macro to insert the desired TiddlerName.
First, create a tiddler (e.g., [[ShowSection]]) containing something
like this:
----------------
!!!$1 @@font-size:80%;(<<editTiddler [[$1]]>>)@@
<<tiddler [[$1]]>>
----------------
Then, to use it in another tiddler, just embed the following:
<<tiddler ShowSection with: TiddlerName>>

enjoy,
-e

Andy Green

unread,
Jul 26, 2009, 5:38:07 PM7/26/09
to Tiddl...@googlegroups.com
Looks like you've solved my problem. Thanks!
-Jarble
--
http://www.tiddlywiki.org

Corey S

unread,
Jul 27, 2009, 4:40:07 AM7/27/09
to TiddlyWiki
I did something wrong. I tried this as I have a large tiddler that I
broke down.

I ended up doing this
!![[Warships|USN Warship Hull Codes]]
<<tiddler [[USN Warship Hull Codes]]>>
so I could bring up the tiddler to edit it.

I copied the lines:
!!!$1 @@font-size:80%;(<<editTiddler [[$1]]>>)@@
<<tiddler [[$1]]>>
And named the tiddler ShowSection

but the resulting tiddler renders
$1 (error in macro <<editTiddler>>)

I then added the systemConfig tag, refreshed and got a "Syntax error:
missing ; before statement".

I'm not a programmer. I first tried programming with Turbo Pascal 15
years ago, then C++ a year later in school, but it didn't take.

Ken said "Just put <<editTiddler TiddlerName linktext>> in the other
tiddlers. "
Would I put this in the parts that I am amalgamating in another
tiddler?

I'm using TW 2.5.2 in Sea Monkey 1.1.16


On Jul 26, 1:31 pm, Eric Shulman <elsdes...@gmail.com> wrote:
> > I thinkhttp://tiddlytools.com/#EditTiddlerPluginwill do what you

Eric Shulman

unread,
Jul 27, 2009, 5:44:15 AM7/27/09
to TiddlyWiki
> I copied the lines:
> !!!$1 @@font-size:80%;(<<editTiddler [[$1]]>>)@@
> <<tiddler [[$1]]>>
> And named the tiddler ShowSection
> but the resulting tiddler renders
> $1 (error in macro <<editTiddler>>)

When viewed directly, the ShowSection tiddler will show the above
'error' output. However, when you write
<<tiddler ShowSection with: TiddlerName>>
in another tiddler, then the $1 contained in ShowSection is
*automatically substituted* with "TiddlerName" (the value of the macro
parameter), resulting in:

!!!TiddlerName @@font-size:80%;(<<editTiddler [[TiddlerName]]>>)@@
<<tiddler [[TiddlerName]]>>

Thus, after creating ShowSection, you simply create another tiddler
with lines like this:

<<tiddler ShowSection with: [[USN Warship Hull Codes]]>>
<<tiddler ShowSection with: [[SomeTiddler]]>>
<<tiddler ShowSection with: [[SomeOtherTiddler]]>>
etc.

> I then added the systemConfig tag, refreshed and got a "Syntax error:
> missing ; before statement".

Don't add a 'systemConfig' tag... the content of the tiddler is *not*
javascript programming... it is simply formatted wiki-syntax content
for use with the <<tiddler>> macro (as described above).

enjoy,
-e

Tobias Beer

unread,
Jul 27, 2009, 5:45:45 AM7/27/09
to TiddlyWiki
Hi Eric,

That is amazing!
Is that $1 parameter specific to "EditTiddlerPlugin" or general
functionality of tiddlywiki?
If it is general, is there some documentation on (other) powerful
hooks like that?

Thanks, Tobias.


On Jul 26, 10:31 pm, Eric Shulman <elsdes...@gmail.com> wrote:
> > I thinkhttp://tiddlytools.com/#EditTiddlerPluginwill do what you

Mark S.

unread,
Jul 27, 2009, 9:07:53 AM7/27/09
to TiddlyWiki
The $1 is in the original <<tiddler>> macro per the tiddly wiki org
page:

http://tiddlywiki.org/wiki/Transclusion

But due to the lack of organizing structure, you would almost have to
stumble across it by accident.

-- Mark

On Jul 27, 1:45 am, Tobias Beer <beertob...@googlemail.com> wrote:
> Hi Eric,
>
> That is amazing!
> Is that $1 parameter specific to "EditTiddlerPlugin" or general
> functionality of tiddlywiki?
> If it is general, is there some documentation on (other) powerful
> hooks like that?
>
> Thanks, Tobias.
>
> On Jul 26, 10:31 pm, Eric Shulman <elsdes...@gmail.com> wrote:
>
> > > I thinkhttp://tiddlytools.com/#EditTiddlerPluginwilldo what you
Reply all
Reply to author
Forward
0 new messages