Displaying the source of one tiddler inside the source of another tiddler

83 views
Skip to first unread message

Andy Green

unread,
Jan 5, 2012, 3:35:39 PM1/5/12
to tiddl...@googlegroups.com
Are there any plugins that make it possible to display the source of one tiddler inside the source of another when using transclusion? This would make it easier to edit multiple tiddlers at the same time.

Example:

Tiddler A source code:

This is tiddler A. It is transcluded inside tiddler B.

Tiddler B source code:

This is Tiddler B.

<<includeSource [[Tiddler A]]>>This is tiddler A. It is transcluded inside tiddler B.<</includeSource [[Tiddler A]]>>

PMario

unread,
Jan 5, 2012, 5:02:06 PM1/5/12
to TiddlyWiki
Hi Andy,
I'm not sure, what you mean with "source"

TiddlerA
some tiddler a text

TiddlerB
b text <<tiddler TiddlerA>> b text

or

TiddlerA
! section1
some section1 text

! section2
some section2 text

!end
some more text not seen when transcluded


TiddlerB
<<tiddler "TiddlerA##section1">>

hope, this is what you want
-mario
see: http://tiddlywiki.com/#%5B%5Btiddler%20macro%5D%5D for more info

Andy Green

unread,
Jan 5, 2012, 5:09:10 PM1/5/12
to tiddl...@googlegroups.com
In the example I posted, I wanted to transclude the source of tiddler A inside the source of tiddler B. By "source", I mean the page source as written in wiki markup language.

Here's the same example again:

Tiddler A source code:
(

This is tiddler A. It is transcluded inside tiddler B.

)

Tiddler B source code:
(

This is Tiddler B.
<<includeSource [[Tiddler A]]>>This is tiddler A. It is transcluded inside tiddler B.<</includeSource [[Tiddler A]]>>

)

I want to find a macro that will perform this function. The transcluded text should be synchronized with the page it corresponds to.

Andy Green

unread,
Jan 5, 2012, 8:06:50 PM1/5/12
to tiddl...@googlegroups.com
In the example I posted, I wanted to transclude the source of tiddler A inside the source of tiddler B. By "source", I mean the page source as written in wiki markup language.

Here's the same example again:

Tiddler A source code:
(

This is tiddler A. It is transcluded inside tiddler B.

)

Tiddler B source code:
(

This is Tiddler B.
<<includeSource [[Tiddler A]]>>This is tiddler A. It is transcluded inside tiddler B.<</includeSource [[Tiddler A]]>>

rakugo

unread,
Jan 6, 2012, 11:37:05 AM1/6/12
to TiddlyWiki
You can do this:
Create a tiddler called SourceTemplate which has the following text:
<<view text text>>

Now to include it run:
<<list filter [[Title]] template:SourceTemplate>>

Måns

unread,
Jan 7, 2012, 4:15:50 AM1/7/12
to TiddlyWiki
Hi Jon

> You can do this:
> Create a tiddler called SourceTemplate which has the following text:
> <<view text text>>
>
> Now to include it run:
> <<list filter [[Title]] template:SourceTemplate>>

Is it possible to use InlineEditPlugin (@the-web-is-your-oyster) with
tiddler sections, create a template with: <<view "##Section1"
wikified>> <<inlineEdit text [[##Section1]]>> *and* replace a
"normal" viewtemplate's <div class='viewer' macro='view text
wikified'></div> with.this template??

Cheers Måns Mårtensson

Tobias

unread,
Jan 8, 2012, 5:21:16 PM1/8/12
to TiddlyWiki
Hi Andy,

Looks like this kind of "remote-editing" plugin yet needs to be
written... but then again, what's the purpose of all of this?

If at all, I could envision this as some extension to the tiddler
macro that allows for some parameter called editTranscludedSource or
the likes.

But then, would that traverse the whole transclusion chain or just
make any first level transclusions editable?

It seems simpler to me if one had a list of all transcluded tiddlers
or perhaps some kind of "smart edit" that opens a popup which allows
you to jumpstart edit mode for any transcluded tiddlers.

But again, afaict, that doesn't exist. So, feel invited to provide /
describe a worhy usecase that would convince any development hungry
contributor to do her or his best.

Cheers, Tobias.

Måns

unread,
Jan 8, 2012, 6:16:16 PM1/8/12
to TiddlyWiki
Hi Tobias

> Looks like this kind of "remote-editing" plugin yet needs to be
> written...

> It seems simpler to me if one had a list of all transcluded tiddlers
> or perhaps some kind of "smart edit" that opens a popup which allows
> you to jumpstart edit mode for any transcluded tiddlers.
>
> But again, afaict, that doesn't exist.

I guess it *does* -
Eric's pasteUpPlugin & editSectionPlugin

Check out http://www.tiddlytools.com/quickstart/pasteup.html

If you use the addPart button you'll add a "part", which might be a
new or existing tiddler to the current tiddler.
If you click the part (or shift click) you'll get a popup
(EditSection) which lets you edit the transcluded tiddler...

Cheers Måns Mårtensson

Eric Shulman

unread,
Jan 8, 2012, 9:38:40 PM1/8/12
to TiddlyWiki
> If at all, I could envision this as some extension to the tiddler
> macro that allows for some parameter called editTranscludedSource or
> the likes.

> or perhaps some kind of "smart edit" that opens a popup which allows
> you to jumpstart edit mode for any transcluded tiddlers.
>
> But again, afaict, that doesn't exist.

http://www.TiddlyTools.com/#EditSectionPlugin
http://www.TiddlyTools.com/#PasteUpPlugin
http://www.TiddlyTools.com/#PasteUpHelperPlugin

Specifically, PasteUpPlugin extends the <<tiddler>> macro (and also
provides a separate <<pasteUp>> macro), that allows you to click
content that has been embedded from a separate tiddler (or tiddler
section) and edit the *source* of that tiddler/section via a popup
editor. You can enable popup editing for individual embedded content
by using the extended "edit" keyword:
<<tiddler TiddlerName edit>>
(or just use the <<pasteUp TiddlerName>> macro ... editing is implied
for embedded <<pasteup>> elements). You can also activate editing for
*all* instances of <<tiddler>> by using
<<option chkPasteUpEditAll>>

There's several other enhanced options for <<tiddler>> (and
<<pasteUp>>), including the ability to specify the *position*
(offset), *dimensions*, and *z-index* of an embedded element. You can
even *drag* an element with the mouse to change it position/size,
allowing you to perform "free-form layout" (aka, "pasteup") of
content.

enjoy,
-e
Eric Shulman
TiddlyTools / ELS Design Studios

----
TiddlyTools needs YOUR financial support...
Help ME to continue to help YOU...
make a generous donation today:
http://www.TiddlyTools.com/#Donations

Professional TiddlyWiki Consulting Services...
Analysis, Design, and Custom Solutions:
http://www.TiddlyTools.com/#Contact

Tobias

unread,
Jan 9, 2012, 2:55:10 AM1/9/12
to TiddlyWiki
Hello together...

Of course, I was thinking too much in the context of edit mode...
Besides, I still haven't got to play with PasteUpPlugin. Other than
the documentation itself, does anyone have / know of some (example)
wikis that make use of it?

Thanks, tb.



On 9 Jan., 03:38, Eric Shulman <elsdes...@gmail.com> wrote:
> > If at all, I could envision this as some extension to the tiddler
> > macro that allows for some parameter called editTranscludedSource or
> > the likes.
> > or perhaps some kind of "smart edit" that opens a popup which allows
> > you to jumpstart edit mode for any transcluded tiddlers.
>
> > But again, afaict, that doesn't exist.
>
> http://www.TiddlyTools.com/#EditSectionPluginhttp://www.TiddlyTools.com/#PasteUpPluginhttp://www.TiddlyTools.com/#PasteUpHelperPlugin

Måns

unread,
Jan 9, 2012, 8:15:35 AM1/9/12
to TiddlyWiki
Hi Tobias

> Other than
> the documentation itself, does anyone have / know of some (example)
> wikis that make use of it?

Yep:
http://fri-it.tiddlyspace.gir.dk/

For testing/trying things out:
http://flytbar6.tiddlyspace.com/ (click "editable")
http://flytbar5.tiddlyspace.com/ (click "toggle pasteUpID")

A single page/tiddler layout:
http://dansk.tiddlyspace.com/#BogRapport (you'll need to find a way to
put it in write mode if you want to see what the author sees -
editSection buttons and draggable elements)

Cheers Måns Mårtensson

Måns

unread,
Jan 9, 2012, 8:30:27 AM1/9/12
to TiddlyWiki
http://pasta.tiddlyspace.com/ is meant for inclusion ...


On 9 Jan., 14:15, Måns <humam...@gmail.com> wrote:
> Hi Tobias
>
> > Other than
> > the documentation itself, does anyone have / know of some (example)
> > wikis that make use of it?
>
> Yep:http://fri-it.tiddlyspace.gir.dk/
>
> For testing/trying things out:http://flytbar6.tiddlyspace.com/(click "editable")http://flytbar5.tiddlyspace.com/(click "toggle pasteUpID")
>
> A single page/tiddler layout:http://dansk.tiddlyspace.com/#BogRapport(you'll need to find a way to
Reply all
Reply to author
Forward
0 new messages