On Oct 8, 4:25 pm, Eric Shulman <[email protected]> wrote:
> FileDropPlugin currently creates tiddlers that it fills with the
> *content* of the dropped files, (which are assumed to be text).
> However, it wasn't to difficult to support your desired use case...
> To that end, I've just added an option to FileDropPlugin that permits
> it to automatically generate the external links directly into the
> resulting tiddlers, using whatever formatting you specify. I also did
> some code cleanup/reduction, and re-wrote the documentation to be much
> more helpful (I hope)...
>
> You can get the update (v2.1.0) here:
> http://www.TiddlyTools.com/#FileDropPlugin
>
> Here's an excerpt from the updated documentation:
> --------------------------------------------
> When creating text tiddlers, you can embed a link to the original
> external file at the top of the new tiddler, in addition to (or
> instead of) the text content itself. The format for this link (see
> Configuration, below) uses embedded replacement markers that allow you
> to generate a variety of wiki-formatted output, where:
> * %0 = filename (without path)
> * %1 = local file://... URL
> * %2 = local path and filename (OS-native format)
> * %3 = relative path (if subdirectory of current document
> directory)
> * %4 = file size
> * %5 = file date
> * %6 = current date
> * %7 = current TiddlyWiki username
> * \n = newline
> By default, the link format uses the filename (%0) and local URL (%1),
> enclosed within a hidden section syntax, like this:
> /%
> !link
> [[%0|%1]]
> !end
> %/
> This permits the link to be embedded along with the text content,
> without changing the appearance of that content when the tiddler is
> viewed. To display the link in your tiddler content, use:
> <<tiddler TiddlerName##link>>
> ------------------------------
>
> enjoy,
> -e
> Eric Shulman
> TiddlyTools / ELS Design Studios
Thanks a lot Eric. At least I got this to work in the sense I managed
to get a new Tiddler automatically created – as against getting the
Dialog from Firefox asking if I wanted to open the file.
The resulting file seems to have 5 sections i.e. “usage”, “notes”,
“type”, “file”, “url”, and “data” Is it possible to change these
sections. I want to remove the data i.e. only to link to the file. (I
unchecked the “Copy file content into tiddlers… ” – but it still
creates the “data” section. I also don’t think that “URL” and “Type”
help, because they are either null or obvious from the file extension
(in my personal case). Is it possible to modify these sections?
You mention the option “Generate an external link to files, using this
format:” seems to be work perfectly. Thanks a lot for that. I only
which I could change the 5 sections mentioned above.
Thanks again Eric.
O.O.
Note to other readers: There are two different FileDropPlugin’s being
talked about in this thread, one from Eric, and the other one referred
to by Wolfgang in his posts above.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/tiddlywiki?hl=en
-~----------~----~----~----~------~----~------~--~---