Jan,

I got it working on php with tw-receiver. Thanks 

I appreciate it when someone helps me open a new "can of worms" :)

*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

*Other changes*

   - A few customisations (for debug) and translation of 2 words

*I observed*

   1. 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
   2. The post folder must exist first but I can "upload" any new tid 
   filename
   3. I can use the import button and provide the above link and the import 
   mechanism is triggered
   4. 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*

   - Will this work *without* TW receiver active (not yet tested) 
   - Can I use something similar to post multiple files or tids at once? 
   (Not only one json file as below)
   - 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.

Regards
Tony


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 [email protected].
To post to this group, send email to [email protected].
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.

Reply via email to