Looking for easy way to link to external files

38 views
Skip to first unread message

delirious

unread,
Jun 2, 2007, 1:28:14 AM6/2/07
to TiddlyWiki

Hi,


like many people I started using TW as a personal information tool and
I love it. The only thing I find cumbersome is incorporating external
documents in my "personal knowledge database". Can someone please tell
me if there's an easier way to do following, I've searched the web and
this group to no avail.

_Goal:_
Add pdfs, docs, ppts, etc ... to my "knowledge database" using as
little operations as possible.

_Ideal scenario as I imagine it:_
1. I drag&drop the file over my TW somewhere
2. TW automatically copies the file to my "data" directory, creates a
new tiddler containing a link [my file name|datadirectory/
myfilename.ext]
3. I complete the tiddler if necessary and save it
Done.
If I ever delete the tiddler, TW deletes the file it's referring to.

_What I am doing now:_
1. Copying the file manually to my "data" directory
2. Creating a new tiddler, pasting the filename in the title, and
typing the link [my file name|datadirectory/myfilename.ext] by hand
Done.
I have to remember to delete the file if I ever delete the
corresponding tiddler.

How can I make this use case faster ?

Thank you for your time and keep up the good work.

delirious

Eric Shulman

unread,
Jun 2, 2007, 2:11:37 AM6/2/07
to TiddlyWiki
> Add pdfs, docs, ppts, etc ... to my "knowledge database" using as
> little operations as possible.

> _What I am doing now:_


> 1. Copying the file manually to my "data" directory
> 2. Creating a new tiddler, pasting the filename in the title, and
> typing the link [my file name|datadirectory/myfilename.ext] by hand

The following creates an IFRAME whose URL points to the "data/"
subdirectory, relative to the current TW document. On most systems,
this will automatically display a directory listing in the IFRAME.
While this is not exactly the same use case as you have described, it
can provide a similar ability. Just drop files into the data
directory (using your system's regular drag-and-drop mechanism).
Whenever the IFRAME is rendered, it will reflect the current contents
of the data directory.
----------------
<html><iframe width="100%" height="500" style="background:#fff;margin-
top:2px"></iframe></html><script>
var path=document.location.href; // location of current TW document
path=path.substr(0,path.lastIndexOf("/")+1); // remove filename (but
leave trailing /)
path+=+"data/"; // append subdirectory
place.lastChild.firstChild.src=path; // set IFRAME source
</script>
----------------
(note: this requires http://www.TiddlyTools.com/#InlineJavascriptPlugin
to process the <script>...</script> block)

HTH,
-e
Eric Shulman
TiddlyTools / ELS Design Studios

BidiX

unread,
Jun 2, 2007, 3:21:48 AM6/2/07
to Tiddl...@googlegroups.com
Hi Eric,

On 6/2/07, Eric Shulman <elsd...@gmail.com> wrote:


The following creates an IFRAME whose URL points to the "data/"
subdirectory, relative to the current TW document.  On most systems,
this will automatically display a directory listing in the IFRAME.
...

Whenever the IFRAME is rendered, it will reflect the current contents
of the data directory.
...

(note: this requires http://www.TiddlyTools.com/#InlineJavascriptPlugin
to process the <script>...</script> block)


Your solution should works.

I found that an IFRAME like this one, without your nice InlineJavascriptPlugin,

<html><iframe width="100%" height="500" src="backup"></iframe></html>

works for me in Firefox both in local and over HTTP. I don't know if it works on other platform.

It's really useful to keep a watch to backup files ;)

-- BidiX
http://TiddlyWiki.bidix.info | http://TiddlyLab.bidix.info | http://TiddlyHome.bidix.info | http://del.icio.us/TiddlyWikiPlugin

Cheeser

unread,
Jun 4, 2007, 9:19:25 AM6/4/07
to TiddlyWiki
Hi,
I'm not experienced with Tiddlers, so hope that you can you spell this
out for me. I have installed the javascriptplugin (so far so good),
and pasted in Eric's html code...BUT when I drag/drop a 'word'.doc
(Crystal Reports Process.doc) into the IFRAME box it just openes the
file, but remains empty.

I want to make links from a file on the shared drive (J:) of my LAN:
an example of a word doc (Crystal Reports Process.doc) and path to it
is:

J:\Flight\ND\INFO DB\SOPs\INTERNAL docs\Crystal Reports Process.doc

how do i get this file to be shown in the IFRAME box cas a link that i
can click

I installed Eric's code into a tiddler (called ZeddTiddler). This wd
be very useful for me if I can get this to work, so thanks in advance.

Nick D

.............

On Jun 2, 8:21 am, BidiX <bidi...@gmail.com> wrote:
> Hi Eric,
>

> On 6/2/07, Eric Shulman <elsdes...@gmail.com> wrote:
>
>
>
> > The following creates an IFRAME whose URL points to the "data/"
> > subdirectory, relative to the current TW document. On most systems,
> > this will automatically display a directory listing in the IFRAME.
> > ...
> > Whenever the IFRAME is rendered, it will reflect the current contents
> > of the data directory.
> > ...

> > (note: this requireshttp://www.TiddlyTools.com/#InlineJavascriptPlugin


> > to process the <script>...</script> block)
>
> Your solution should works.
>
> I found that an IFRAME like this one, without your nice
> InlineJavascriptPlugin,
>
> <html><iframe width="100%" height="500" src="backup"></iframe></html>
>
> works for me in Firefox both in local and over HTTP. I don't know if it
> works on other platform.
>
> It's really useful to keep a watch to backup files ;)
>

> -- BidiXhttp://TiddlyWiki.bidix.info|http://TiddlyLab.bidix.info|http://TiddlyHome.bidix.info|http://del.icio.us/TiddlyWikiPlugin

Eric Shulman

unread,
Jun 4, 2007, 10:37:01 AM6/4/07
to TiddlyWiki
> I'm not experienced with Tiddlers, so hope that you can you spell this
> out for me. I have installed the javascriptplugin (so far so good),
> and pasted in Eric's html code...BUT when I drag/drop a 'word'.doc
> (Crystal Reports Process.doc) into the IFRAME box it just openes the
> file, but remains empty.

You can't drag/drop directly into the IFRAME... you still have to
drop the file into the desired FOLDER on your system. The IFRAME
simply provides an automatic directory listing of that folder contents
with clickable links to each file shown.

By the way, as BidiX notes, since the folder in question is simply a
subdirectory of the current working directory, you can omit the


javascript from my previous example, and simply write:

<html><iframe width="100%" height="500" src="backup"></iframe></html>

HTH,

jroeterd

unread,
Jun 5, 2007, 10:03:22 AM6/5/07
to TiddlyWiki

>
> <html><iframe width="100%" height="500" src="backup"></iframe></html>
>

I can use this for all mappings on my local machine and network as
long as I change the src= accordingly. But when I do that it is
presenting the folders and files in Tiles and I would like to see it
in a list-view. And also the left explorerbar is presented. Does
somebody how to get the listview and remove the explorerbar ?

Thanks in advance.

Greetings,
Jroeterd

Cheeser

unread,
Jun 7, 2007, 7:38:18 AM6/7/07
to TiddlyWiki
I am using this feature with both Firefox and IE6. what I'm about to
say is sacreligious, but IE6 seems to do a much better job. Not only
can you see the files as they appear in the windows folder and can do
rt-click mouse operations on them (change view (details/icons/
thumbnails etc), sort by name/date/size, etc.). BUT you can also
create docs, and past information into them from within the Tiddler
itsself - I love this

Firefox by comparison does not allow any mouse rt-click operations at
all, and shows the files as a very unappeakling list, with "Index of
file: <path to file> shown in huge letters at the top of the tiddler,
and a list of links. Nothing more.

A pity, as FF is far superior in most ways, but IE6 beats it hands
down in this oner are - any suggestions?

Nick

FND

unread,
Jun 7, 2007, 7:57:03 AM6/7/07
to Tiddl...@googlegroups.com
> I am using this feature with both Firefox and IE6. what I'm about to
> say is sacreligious, but IE6 seems to do a much better job.

What you're seeing when calling up a local folder in IE6 is not the web
browser, but the Windows file explorer.
While that might be comfortable in this particular case, this kind of
entanglement is also one of IE's major flaws (mainly for security reasons).

Either way, you could always use the IE Tab extension
(http://ietab.mozdev.org) for Firefox.


-- F.

Jerry

unread,
Jun 9, 2007, 2:07:16 PM6/9/07
to TiddlyWiki
> <html><iframe width="100%" height="500" src="backup"></iframe></html>

I can use this for all mappings on my local machine and network as
long as I change the src= accordingly.

With this I can access any document on my harddisk, and this without
changing the src=to some other map.
How is this capability in reference to security//cracking? Recall
reading about file:// permissions setting in Firefox some time ago but
gave up on it, couldn't work it out somehow.

Cheers,
Jerry.

Daniel Baird

unread,
Jun 10, 2007, 6:41:31 AM6/10/07
to Tiddl...@googlegroups.com
I think the iframe is a plain old explorer window, and regular web
pages (which I think will also include the TiddlyWiki containing the
iframe) can't see what's actually *in* the iframe. As long as web
pages and your local files can't see each other, you're protected.

Of course, I'm not a security expert..

;Daniel

On 10/06/07, Jerry <jayb...@gmail.com> wrote:
>
> > <html><iframe width="100%" height="500" src="backup"></iframe></html>
>
> I can use this for all mappings on my local machine and network as
> long as I change the src= accordingly.
>
> With this I can access any document on my harddisk, and this without
> changing the src=to some other map.
> How is this capability in reference to security//cracking? Recall
> reading about file:// permissions setting in Firefox some time ago but
> gave up on it, couldn't work it out somehow.
>
> Cheers,
> Jerry.
>
> On Jun 5, 4:03 pm, jroeterd <jroet...@gmail.com> wrote:
> > > <html><iframe width="100%" height="500" src="backup"></iframe></html>
> >
> > I can use this for all mappings on my local machine and network as
> > long as I change the src= accordingly. But when I do that it is
> > presenting the folders and files in Tiles and I would like to see it
> > in a list-view. And also the left explorerbar is presented. Does
> > somebody how to get the listview and remove the explorerbar ?
> >
> > Thanks in advance.
> >
> > Greetings,
> > Jroeterd
>
>
> >
>


--
Daniel Baird
http://tiddlyspot.com (free, effortless TiddlyWiki hosting)
http://danielbaird.com (TiddlyW;nks! :: Whiteboard Koala :: Blog ::
Things That Suck)

Reply all
Reply to author
Forward
0 new messages