Open Tiddler in another wiki

662 views
Skip to first unread message

smorisi

unread,
Feb 19, 2008, 12:34:38 PM2/19/08
to TiddlyWiki
Hi.
I have several TiddlyWikis in one directory.
How can I link to a tiddler in one TW from another TW
Thanks

Eric Shulman

unread,
Feb 19, 2008, 1:04:34 PM2/19/08
to TiddlyWiki
> I have several TiddlyWikis in one directory.
> How can I link to a tiddler in one TW from another TW

Using the 'permalink' syntax in an 'external link':
[[text to display|otherfile.html#TiddlerName]]
will open the otherfile.html document in a separate tab/window, and
automatically display the TiddlerName specified following the "#".

If, however, you want to display this tiddler *in the current
document*, without opening a separate document window, you can use
http://www.TiddlyTools.com/#ExternalTiddlersPlugin

This plugin extends the core's <<tiddler TiddlerName>> macro, so that
you can dynamically render content stored in other files simply by
using a URL or path/file reference in place of the normal TiddlerName
param. For example:
<<tiddler somefile.txt>>
will read and render the contents of 'somefile.txt' (contained in the
same directory as the current document), while
<<tiddler http://www.example.com/somefile.txt>>
renders the contents of somefile.txt, stored on a remote server.

Each time the <<tiddler>> macro is rendered, it will re-read the
content from the external file. This is particularly useful when the
external file is dynamically-updated on a periodic basis (such as a
web server error log file). Every time the <<tiddler>> macro is re-
rendered, the *current* error log contents is retrieved and displayed,
giving you an instant 'system monitor' within your TiddlyWiki
document!

For your requested purpose (linking to tiddlers in other TW
documents), in addition to being able to pull contents from ANY file
type, the plugin's extended syntax also allows you to make references
to specific tiddlers contained WITHIN an external TW document, using
the standard 'permalink' syntax:
<<tiddler otherfile.html#TiddlerName>>

Note: this plugin also provides a 'fallback' mechanism that allows you
to specify a list of alternative sources for the tiddler content,
using "|" to separate the alternatives, e.g.:
<<tiddler TiddlerName|localfile.html#TiddlerName|http://
www.example.com/remotefile.html#TiddlerName>>

The plugin tries each alternative, in turn, until one is successfully
read in. In addition, if the FIRST alternative is a simple
TiddlerName that does NOT exist in the current document, and an
alternative is successfully read, that TiddlerName is automatically
created from the external source, effectively 'caching' the results
locally, so that the external access does not have to be repeated
during the current document session.

By default, if you subsequently save the current document, these auto-
imported tiddlers ARE saved with the document. However, the plugin
can also automatically tag the locally-cached tiddlers with
"temporary", so that if you have installed
http://www.TiddlyTools.com/#TemporaryTiddlersPlugin
the auto-imported tiddlers will be skipped over when you save the
current document, so that those tiddlers will be re-read from the
external source each time your document is loaded.

enjoy,
-e
Eric Shulman
TiddlyTools / ELS Design Studios

FND

unread,
Feb 19, 2008, 1:06:04 PM2/19/08
to Tiddl...@googlegroups.com
> I have several TiddlyWikis in one directory.
> How can I link to a tiddler in one TW from another TW

You can use PrettyLinks for that:
[[bar in foo|foo.html#bar]]
This assumes your second TW document is called "foo.html", the desired
tiddler is "bar". For tiddlers containing spaces, use the respective
tiddler's permalink feature to retrieve the proper syntax (for a tiddler
called "foo bar", it would look like this: "%5B%5BFoo%20Bar%5D%5D").

HTH.


-- F.

Dave KP

unread,
Oct 3, 2013, 7:14:16 PM10/3/13
to tiddl...@googlegroups.com, TiddlyWiki
On Tuesday, February 19, 2008 12:04:34 PM UTC-6, Eric Shulman wrote:
 
If, however, you want to display this tiddler *in the current
document*, without opening a separate document window, you can use
   http://www.TiddlyTools.com/#ExternalTiddlersPlugin

Eric,

I'm not sure if I'm replying to the right post here so that shows what a newbie I am. I've installed the ExternalTiddlersPlugin that you mentioned, but my problem is it just places the text from the external tiddler into the current tiddler. What I need is a way to link to a tiddler so it will open like any other tiddler (below the one the link is in) but have the tiddler it opens be from an external tiddlywiki. Is this possible? Maybe I'm not using ExternalTiddlersPlugin properly but I can't find anything by searching this group that will help me.


Tobias Beer

unread,
Oct 4, 2013, 8:01:05 AM10/4/13
to tiddl...@googlegroups.com, TiddlyWiki
Hi Dave,

I'm not sure if I'm replying to the right post here so that shows what a newbie I am. I've installed the ExternalTiddlersPlugin that you mentioned, but my problem is it just places the text from the external tiddler into the current tiddler. What I need is a way to link to a tiddler so it will open like any other tiddler (below the one the link is in) but have the tiddler it opens be from an external tiddlywiki. Is this possible? Maybe I'm not using ExternalTiddlersPlugin properly but I can't find anything by searching this group that will help me.

What you describe sounds a bit like the least efficient thing to do, like ordering a shipment of cakes when what you want is a slice. Why? Because any standard TiddlyWiki would have to be loaded in full just to retrieve that one tiddler. 

Consider using SharedTiddlersPlugin

There are efficient ways to pull stuff from a server, e.g. TiddlyWeb / TiddlySpace, but I don't think anyone has ever used that outside of it so far. Such a plugin could leverage code from...

TiddlyWebAdaptor from the @system space
TiddlySpaceLinkPlugin from the @system-plugins space

Tobias.

Dave KP

unread,
Oct 7, 2013, 10:30:16 PM10/7/13
to tiddl...@googlegroups.com, TiddlyWiki
Thanks Tobias,

I've tried to install the SharedTiddlersPlugin but when I put the address I have (http://yakovl.bplaced.net/TW/STP/STP.html) into the ImportTiddlers tiddler I get an error saying "Error retrieving tiddlers from url, please ensure this url exists and is CORS enabled". Is this something wrong with what I'm doing or the address I have for the plugin?
Message has been deleted

Tobias Beer

unread,
Oct 8, 2013, 7:33:58 AM10/8/13
to tiddl...@googlegroups.com, Tiddl...@googlegroups.com
For tiddlers containing spaces, use the respective  tiddler's permalink feature to retrieve the proper syntax (for a tiddler called "foo bar", it would look like this: "%5B%5BFoo%20Bar%5D%5D").

In case your browser refuses to do that and keeps on showing prettified URL's, you can use this little tool...

Tobias. 

Dave KP

unread,
Oct 8, 2013, 2:53:21 PM10/8/13
to tiddl...@googlegroups.com, Tiddl...@googlegroups.com

Tobias Beer

unread,
Oct 8, 2013, 5:36:49 PM10/8/13
to tiddl...@googlegroups.com, Tiddl...@googlegroups.com
Ah, there we go, the import no longer works "long distance". You need to actually download that target wiki and put it in the same folder as your wiki, then you can import by entering the name of that file in the input box.

Tobias.

Dave KP

unread,
Oct 8, 2013, 7:07:24 PM10/8/13
to tiddl...@googlegroups.com, Tiddl...@googlegroups.com
Thanks! It worked a treat and it's exactly what I needed too!
Reply all
Reply to author
Forward
0 new messages