Mohammad,
There is a way I discovered, but I have not completed the solution I am
building.
If you import some tiddlers, even a json file you will see that the
$:/Import tiddler is created. Editing this it looks like a json tiddler,
not only with a list of tiddlers, but containing the data to create such
tiddlers once the import button is pressed.
The import buttons are made visible in the View template if the following
filter is true ""[all[current]field:plugin-type[import]]" as can be seen in
$:/core/ui/ViewTemplate/import tagged with $:/tags/ViewTemplate Which show
the buttons above and below {{||$:/core/ui/ImportListing}}
$:/core/ui/ImportListing renders the table of tiddlers contained there in
the $:/Import
On completion of the import $:/Import text is replaced with a list of the
imported tiddlers.
Thus you can over ride the Shadow Tiddler $:/core/ui/ViewTemplate/import to
add to the import page view and/or $:/core/ui/ImportListing for header and
footer, even row column updates to the import process.
In my planned design
- I will use a tag to identify Import Columns which will appear on the
Import view by editing $:/core/ui/ImportListing allowing additional columns
to be added both for more info on potential imports and selections
- I hope also allow filtering of the potential import items by values
contained withing the potential import tiddlers.
This should send you on your way, but perhaps we can compare notes.
Regards
Tony
On Friday, 4 January 2019 19:37:56 UTC+11, Mohammad wrote:
>
> Is there any solution to do extra operation on tiddler import?
>
> Assume you have imported several tiddlers by drag and drop or using
> sidebar/tools/import button and before clicking on the Import button on
> $:/import you want to add a tag e.g. "sandbox"
> to be able undo the import operation later on.
>
> How can I do this?
>
>
> --Mohammad
>
--
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/967779bf-cea3-4307-9bbb-3f8317295bb1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.