Jeremy,

Understood



> I’m not keen to support session storage because it makes things more 
> complicated without addressing any new use cases.
>
>
>    - I am struggling a little with the workflow to configure and deploy 
>    Wikis with Local storage since once activated it starts using local 
> storage.
>
> You might find it helpful to set up a filter for which tiddlers are saved 
> to local storage. A useful variant is to set 
> $:/config/BrowserStorage/SaveFilter to [prefix[$:/state/]] and thus to only 
> save state tiddlers.
>
>
Your addition of disable and clear, along with the filter resolves this in 
effect, thanks.

One could say that "local storage can emulate session storage" by simple 
saving only selected tiddlers relating to the user interface such as the 
user ID, settings and state tiddlers.

*Here is how I understand it and may provide documentation: First draft*

Does this work flow sound correct?

   - Build your desired wiki offline where you can save all changes, 
   customise and add plugins
   - Install the Local storage plugin but disable browser storage on the 
   plugins settings page
   - You may want to hide the Save wiki button/indicator as this may 
   confuse casual visitors
   - You should perhaps turn off autosave Control Panel > Saving "Do not 
   save changes automatically" so that read only/local storage only users, do 
   not get save errors.
   - If you are hosting the wiki on a read only or read/write host 
      - Activate the plugin and save the whole wiki via the default save 
      mechanism
      - Upload to your hosting location (Note: a change in URL or file name 
      will not have access to a prior use of local storage)
      - The Visitors/Wiki will have access to the Local storage when they 
      visit your "site" and can save changes to local storage
   - If you are hosting the wiki on a site where you have read write access
      - Follow the above instructions to install with or without activating 
      the plugin "use browser local storage"
      - Then as the wiki owner to make Permanent changes online
         1. Visit the site, clear Local storage and disable "use browser 
         local storage" (if necessary)
            - Steps 1 and two are interchangable
         2. Make your various "permanent" changes
         3. You may want to include a message to subsequent online users 
         that a change in the permanent wiki has occurred.
            - In case they have modified existing tiddlers that have being 
            saved in local storage.
         4. Enable "use browser local storage".
         5. Save the wiki using the save mechanism (Tick in a circle)
            - Use whatever method is necessary to save over the existing 
            file 
         6. Reload the wiki
         7. All uses of this Wiki will have access to the Local storage 
         when they visit your "site" and can save changes to local storage
      
*Users saving the wiki "offline"*

   - It is possible to build custom save buttons that will allow online 
   users using local storage to export/save empty, full wikis (including local 
   storage) and the permanent wiki (excluding local storage). 
   - Similarly it is possible to export only tiddlers in local storage or 
   that have changed since the last save or reload.

Regards
Tony

Thanks
 

-- 
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/87a990d7-0898-48fd-8e9b-1edcf84954da%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to