Help requested: "Import here" function

56 views
Skip to first unread message

Michael Wiktowy

unread,
Feb 8, 2018, 11:08:56 AM2/8/18
to TiddlyWiki
Hi,

I would like to implement the functionality like "New Here" but for the "Import" functionality such that if you click on a button on a particular tiddler, it will import a file as a tiddler and tag it with that current tiddler much like "New Here" does.

Does the tm-perform-import message support a "tags" parameter or is there some magic incantation of fieldmangler+tm-add-tag+tm-perform-import that can be performed to accomplish this?

Looking at the core functionality of the "New Here" and "Import" buttons, I am creating a lots of buttons that seeming do nothing. Can someone offer some guidance on proper usage of tm-perform-import and whether what I am trying to do is possible without changing core TiddlyWiki stuff (which I am not qualified to do)?

/Mike

TonyM

unread,
Feb 8, 2018, 10:47:28 PM2/8/18
to TiddlyWiki
I can't give you the full answer but I expect you to learn something from the export feature.

Alternativly look for what creates and displays the import tiddler. Note because you can export a tiddler from the tiddler toolbar it will have access to current toddler but the import is in the page toolbar.

Find and copy the import process, add a reference to a selected tag/or current toddler where you can get the tags.

Tony

Reply all
Reply to author
Forward
0 new messages