I just discovered if I change the save all filter and the tiddler wiki file name within tw-reciever the next save will save the subset of tiddlers to the new filename on the server. I can then restore the settings.
Thus it is now possible to do a lot of great things. Like save the current users tiddlers to disk in a separate file not only local storage and re import them to the master wiki after reviewing them.
I would prefer if there was a mechanisium to do this or a plugin rather than this hack. Then it would be easy to generate a locked file, checked out to user etc. Which I can now do using the hack .
I expect this to work on firefox with timimi as well.
Regards
Tony
I would like a user to fill out a survey, save it as a json file the provide a mailto that attaches the file and send it to me.
Regards
Tony
Thanks. I will check it out tomorrow.
Do we discuss this elsewhere?
I appreciate your effort. I am likely to use this like a script kiddy and see what else I can achieve such as check in/out lock.
Regards
Tony
I got it working on php with tw-receiver.
A special note:I am looking at building additional functionality and server options (including single file) for integration and messaging, and exporting content from posts to websites. It is however important to understand I have no desire to compromise the TiddlyWiki single file standard, to the contrary, I want to extend it and allow almost serverless implementations.
I had to do the following to get it working
- Create the /post folder
I observed
- After saving a tid, I can view a known tid in the browser with a link eg http://ampps.local/tw/post/Tony Post Test.tid
- The post folder must exist first but I can "upload" any new tid filename
- I can use the import button and provide the above link and the import mechanism is triggered
- Using import and providing the path only http://ampps.local/tw/post/ tries to import a html document which contains a directory list of the post folder.
This only works if I preview the import and copy and paste the content, and some icons are broken.
The following is about my journey, of course I would love feedback but it is here to share where I am going with this, no obligations to respond.
Questions I will try and answer
- Can I use something similar to post multiple files or tids at once? (Not only one json file as below)
Yes, just modify the content of the textarea in the Tiddler PostForm in the .json.
- I wonder if there is a way to allow browsing the posts folder (on server) to selectively import?
- Is there a way to also delete a post tid from inside the browser on the server?
or from a button?
- I wonder if the php / server could be configured to only allow saving to a particular folder or filename?,
- perhaps after a login process or given a pre-configured username and pass phrase
Speculation
- It seems to me we could generalise this PHP post mechanism into a macro or widget so that it can be used for any number of circumstances.
- Write a lock file if it is not already existing/ detect the presence of a lock file and place the wiki in read only mode/ delete the lock file when done
- Use the browser/close tab function to delete the lock file (freeing it for the next user) even oneself.
- Save a json file of filtered tiddlers (a bundle), then present a link to the JSON to publish.
- Use this link to selectively import multiple tiddlers or trigger an action to do so silently (Prefix or Naming standards could avoid conflict)
- Other wikis with this can optionally import the content of the json (a way of publishing content in bundles and plugins)
- Use this as a selective backup process eg dump to user filename based on [haschanged[]] or local storage (5.1.20+) then reload automatically.
- Use this to submit changes requests by tiddler or group of tiddlers to be committed to the wiki master itself.
- Allow a user to only save to their own folder and with a size limit to stop hacks and DDoS
- Export one or more static html tiddlers for consumption by the wiki or other browsing (a semi-manual version of what we can do with node static tiddlers)
- Generate and Export a full html website constructed from content in the wikis tiddlers.
- In the case of no server rights allow
- file download (already possible but integrate to make seamless),
- or in Timimi save to filesystem when has rights to do so as if on a server, this would allow emulation of a server install without one.
- Could we post an email file and have another server process send it for us? - and other messaging systems.
I continue exploring.
RegardsTony
On Sunday, July 14, 2019 at 11:07:16 PM UTC+10, TonyM wrote:Jan,Thanks. I will check it out tomorrow.
Do we discuss this elsewhere?
I appreciate your effort. I am likely to use this like a script kiddy and see what else I can achieve such as check in/out lock.
Regards
Tony
--
You received this message because you are subscribed to the Google Groups "TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywikide...@googlegroups.com.
To post to this group, send email to tiddly...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywikidev/a18474af-09f7-4193-9333-68e5e4d101c2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddly...@googlegroups.com.