How to make a link which open TW with specific Tiddlers?

35 views
Skip to first unread message

Yakov

unread,
Sep 15, 2010, 2:09:20 AM9/15/10
to TiddlyWiki
I mean
1) hyperlinks. As TW uses JavaScript I'm sure it's possible to make a
hyperlink which text reads "<my TW path><some syntax stuff><a
script>".
2) windows links. I'm not sure if they are capable to include scripts,
so I'm curious if it is possible. However, if the first question is
answered we have some stuff to tweak with in windows links.

The purpose is to extend the "Default Tiddlers" option: imagine that I
store my ideas, or questions, whatever in my TW. Now I have questions
about coding (whatever) - and I want to have a link in my coding
directory; and I have a directory which I open when I want to recall
all the questions I would like ask one person. I want a link in each
folder - a link to TW. But it would be faster if my links open TW
directly with the desirable Tiddlers. So, this is it.

PMario

unread,
Sep 15, 2010, 7:17:20 AM9/15/10
to TiddlyWiki

Jeremy Ruston

unread,
Sep 15, 2010, 9:33:42 AM9/15/10
to tiddl...@googlegroups.com
I did some experimentation in IE7 on Windows XP.

My first attempt was to download a TW HTML file, put it on the hard
drive, and then open it in the browser. Then I dragged the little icon
from the browser address bar to the desktop, creating a shortcut to my
TW file. If I double click on the shortcut, the TW file opens in the
browser as expected.

I then right-clicked on the shortcut file, and selected properties.
There is a field in the property sheet labelled "Target" that contains
the "C:\..." path to the TW HTML file. I tried adding #TiddlerName to
the end of the path but found that the dialogue wouldn't accept it.

I tried another approach which does seem to work:

1) Visit tw.com and drag the address bar icon to the desktop to create
an URL shortcut to http://www.tiddlywiki.com/
2) Open your local TiddlyWiki file in the browser and copy the
"file:\\..." URL that's displayed in the address bar
3) Right click on the shortcut in (1) and choose "Properties"
4) Paste the URL from (2) into the field marked "URL", and add to the
end of it a hash and a space separated list of tiddler names (in the
format generated by permaview). For example,
"#MyTiddler%20AnotherTiddler"
5) Dismiss the properties dialogue

The result is an internet shortcut that opens the local file and
passes along the # parameters correctly,

Cheers

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

Yakov

unread,
Sep 15, 2010, 1:57:24 PM9/15/10
to TiddlyWiki
Thanks for clarifying the syntax. However, the main problem is the
following: if the name of a Tiddler contains the space symbol, TW
tries to open Tiddlers with names "questions", "about", "coding"
instead of "questions about coding" Tiddler. Actually I've tried the
"#" technique before and without this problem it would be ok - as for
windows links, I can create html files which redirect to the TW with
the targeted Tiddlers instead.

On 15 сен, 15:17, PMario <pmari...@gmail.com> wrote:
> this may helphttp://www.tiddlywiki.com/#StartupParametershttp://tiddlywiki.org/wiki/Paramifier

PMario

unread,
Sep 15, 2010, 2:07:23 PM9/15/10
to TiddlyWiki
also see jeremy's post.

http://hoster.peermore.com/recipes/TeamWork/tiddlers.wiki#%5B%5BHowTo%20disable%20empty%20slider%20cookie%5D%5D
-m

On Sep 15, 7:57 pm, Yakov <yakov.litvin.publi...@gmail.com> wrote:
> Thanks for clarifying the syntax. However, the main problem is the
> following: if the name of a Tiddler contains the space symbol, TW
> tries to open Tiddlers with names "questions", "about", "coding"
> instead of "questions about coding" Tiddler. Actually I've tried the
> "#" technique before and without this problem it would be ok - as for
> windows links, I can create html files which redirect to the TW with
> the targeted Tiddlers instead.
>
> On 15 сен, 15:17, PMario <pmari...@gmail.com> wrote:
>
> > this may helphttp://www.tiddlywiki.com/#StartupParametershttp://tiddlywiki.org/wik...

Tobias Beer

unread,
Sep 15, 2010, 2:26:23 PM9/15/10
to TiddlyWiki
Hi Yakov,

Enclose tiddler titles having spaces with square brackets or the
equivalent url encoding.

Thus, either...

http://hoster.peermore.com/recipes/TeamWork/tiddlers.wiki#[[HowTo
disable empty slider cookie]]

or...

http://hoster.peermore.com/recipes/TeamWork/tiddlers.wiki#[[HowTo%20disable%20empty%20slider%20cookie]]

...if that's what PMario was trying to point out.

Chers, Tobias.

Yakov

unread,
Sep 15, 2010, 2:26:25 PM9/15/10
to TiddlyWiki
Thanks for your testing. Unfortunately, the second one does not work
either (in my testing). However, as I mentioned commenting the
previous response, this is not of greatest importance (but the
redirect technique has to be tried too: I understand how to create an
event - make an "onLoad" script, but as for now I don't know how to
load a document using the URL).

On 15 сен, 17:33, Jeremy Ruston <jeremy.rus...@gmail.com> wrote:
> I did some experimentation in IE7 on Windows XP.
>
> My first attempt was to download a TW HTML file, put it on the hard
> drive, and then open it in the browser. Then I dragged the little icon
> from the browser address bar to the desktop, creating a shortcut to my
> TW file. If I double click on the shortcut, the TW file opens in the
> browser as expected.
>
> I then right-clicked on the shortcut file, and selected properties.
> There is a field in the property sheet labelled "Target" that contains
> the "C:\..." path to the TW HTML file. I tried adding #TiddlerName to
> the end of the path but found that the dialogue wouldn't accept it.
>
> I tried another approach which does seem to work:
>
> 1) Visit tw.com and drag the address bar icon to the desktop to create
> an URL shortcut tohttp://www.tiddlywiki.com/
> > For more options, visit this group athttp://groups.google.com/group/tiddlywiki?hl=en.

Yakov

unread,
Sep 16, 2010, 2:33:08 PM9/16/10
to TiddlyWiki
Yeah, that's great, thanks!

I must admit I didn't get what this discussion in
http://groups.google.com/group/tiddlywikidev/browse_thread/thread/eaaa398fd6583a4c
is about, but the [[]] notation does work.

Now we can create a hyperlink in an html-document: URI="file://
localhost/C:/.../TW.html#[[Target note]] [[Another target note]]". It
opens TW and these Tiddlers in it.

The question which remains is how to create a "link" in windows. In my
testings the windows links do not work. If I succeed, I'll post the
solution here.

Tobias Beer

unread,
Sep 16, 2010, 2:53:08 PM9/16/10
to TiddlyWiki
Maybe, instead of opening a specific set of tiddlers, you would be
fine by easily opening a given set once tiddlywiki has started...

http://www.tiddlytools.com/#StorySaverPlugin

Cheers, Tobias.

Yakov

unread,
Sep 21, 2010, 1:31:44 PM9/21/10
to TiddlyWiki
Well, no the idea is to make a box in which I can write (an idea, a
question etc) when I work with smth so that I can view it after in
other context (for example, I meet an expert in differential equations
and I can easily find all the questions I'd like to ask).

So the solution looks as an .html file which reads:

<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>A &quot;link&quot; page which redirects to the chosen one.</
title>
<meta HTTP-EQUIV="Refresh" CONTENT="0; URL=into.html">
</head>
<body>
<a href="into.html">The page to redirect into</a>
</body>
</html>

Unfortunately, Opera waits smth like 1 sec before redirection, but
FireFox and IE work properly. I wonder if there's a way to quicken
Opera.

Yakov

unread,
Oct 11, 2010, 11:02:23 AM10/11/10
to TiddlyWiki
Yeah, I'd like to introduce more reliable solutions for my question.

Redirection made by JavaScript doesn't fail if any Cyrillic characters
appear in the URL and is not delayed even in old versions of Opera
browser; it also works perfectly with FireFox and IE.

The html file must contain only

<script type="text/javascript">
document.location.href = "somewhere/TW.html";
</script>

and perhaps <head> or <body> elements.

As for gaining a link to TW with some opened tiddlers, the permview
button gives that one instantly: just press it and the URL appears in
the address line.

On 21 сен, 21:31, Yakov <yakov.litvin.publi...@gmail.com> wrote:
> Well, no the idea is to make a box in which I can write (an idea, a
> question etc) when I work with smth so that I can view it after in
> other context (for example, I meet an expert in differential equations
> and I can easily find all the questions I'd like to ask).
>
> So the solution looks as an .html file which reads:
>
> <html xmlns="http://www.w3.org/1999/xhtml" lang="en">
> <head>
>         <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
>         <title>A &quot;link&quot; page which redirects to the chosen one.</
> title>
>         <meta HTTP-EQUIV="Refresh" CONTENT="0; URL=into.html">
> </head>
> <body>
>         <a href="into.html">The page to redirect into</a>
> </body>
> </html>
>
> Unfortunately, Opera waits smth like 1 sec before redirection, but
> FireFox and IE work properly. I wonder if there's a way to quicken
> Opera.
>

Tobias Beer

unread,
Oct 11, 2010, 4:42:13 PM10/11/10
to TiddlyWiki
Hi Yakov,

Would you mind summing up, once more, the exact workflow which you
tried to achieve and how exactly you now (seem to) have achieved it?
Are there other html files involved for redirection?!?

Tobias.
Reply all
Reply to author
Forward
0 new messages