Just to clarify where tiddlywiki.files would come into this scenario. If I
dropped a folder of vacation pics into tiddlers/images/vacation then
vacation1,jpg would be available at
localhost:8080/images/vacation/vacation1.jpg and if you wanted to batch tag
them all you would add a tiddlywiki.info file into that directory with the
pictures that reads
{
"directories": [
{
"path": "./",
"filesRegExp": "^.*\\.(jpg|png|jpeg)$",
"isTiddlerFile": false,
"fields": {
"tags": ["vacation"]
}
]
}
and when the wiki loads it will add the tag to all those files.
On Monday, March 9, 2020 at 10:18:25 AM UTC-4, Mohammad wrote:
>
> Thanks Donald
> I gonna to summarize our findings here and hope Jeremy address this
> question: how node.js+tiddlywiki work with external images in a folder of
> choice using _canonical_uri.
>
> --Mohammad
>
> On Monday, March 9, 2020 at 3:54:43 PM UTC+3:30, Donald Coates wrote:
>>
>> To add a little more to what I wrote above and address this specifically
>> - the files are not imported. A reference to their location is created
>> when the server starts. If you look in the directory that the
>> tiddlywiki.files file is in there are no other files there. At least this
>> is what I remember from when I was playing with this before. The only time
>> tiddlywiki creates an actual file with this method is if you manually add a
>> field or tag that is not referenced by the tiddlywiki.file parameters.
>> Then tiddlywiki has to create a meta file to contain that tag or field.
>>
>> The only way to actually import files is through the methods on the
>> importing
>> tiddlers <https://tiddlywiki.com/#Importing%20Tiddlers> page or using
>> the servers import or load command - which is what started me down this
>> rabbit hole in the first place.
>>
>> On Monday, March 9, 2020 at 7:37:50 AM UTC-4, Mohammad wrote:
>>>
>>> In https://tiddlywiki.com/prerelease/#tiddlywiki.files%20Files
>>> It says path is relative to where tiddlywiki.files is located!
>>>
>>> Furthermore, the files are found and imported into Tiddlywiki. I see
>>> list of files in my Recent tab. The ur is created and everything is work.
>>> but the image or pdf tiddlers show nothing!
>>>
>>> --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 view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/aa6961d3-e6c0-4d63-9dd1-16ca468cd219%40googlegroups.com.