Hi Carlos,

I did an update for the loadExternalFiles plugin it is 
ajaxLoadExternalFiles.js<https://github.com/pmario/tw2.plugin-dev-template-node/blob/master/tests/ajaxLoadExternalFiles.js>[1]
 now. I 
did some tests with a "vanilla" apache server installation. So all files 
need to be sent to the client as plain/text files. The plugin converts them 
into tiddlers without any refactoring. 

The client creates a single request for every file. So if you have many 
files, it may take some time to transfer them. Depending on your server 
response time and the internet connection. ... 

The plugin no creates "real tiddlers" because shadow tiddlers have limited 
possibilities. ... eg: Real tiddlers can have tags.

There is also a new config file [2] that lets you adjust the host url 
setting and specify a server side file that contains a file list. 

ExternalFilesConfig tiddler needs to be adjusted to your needs:

! Config
host: http://yourDomainName.com/dir/
list: ServerFileList
log: verbose

The tiddler contains a lot of additional info, but these 3 lines are the 
important one's.
host: the last slash  /  is important!

With the "list:ServerFileList"  setting, the ExternalFiles tiddler is not 
needed anymore. It will only be used, if there is no *ServerFileList file 
on the server*

With this configuration, it should be possible to 
 - upload "anyFile.sh" 
 - upload "ServerFileList"

 - reload the browser -> done

So index.html is only needed if you change it. 

------------

The file structure cna look like this:

yourRootDir
 index.html
 ServerFileList
 anyFile.sh
 anyFile.txt
 ...
 +--shadow (dir)
   i-will-be-a-shadow-tiddler
   ...
 +--test (dir)
   i-will-be-tagged-test
   ...
    
ServerFileList should look like this

anyFile.sh
anyFile.txt
shadow/i-will-be-a-shadow-tiddler
test/i-will-be-tagged-test

Feedback very welcome!

have fun!
mario

[1] https://github.com/pmario/tw2.plugin-dev-template-node/tree/master/tests
[2] 
https://github.com/pmario/tw2.plugin-dev-template-node/blob/master/tests/content/ExternalFilesConfig.tid

-- 
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 http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to