TiddlyWiki / TiddlyWiki5

A self-contained JavaScript wiki for the browser, Node.js, AWS Lambda etc.
https://tiddlywiki.com/
Other
8.01k stars 1.19k forks source link

Read-only single tiddler view #3729

Open AnthonyMuscio opened 5 years ago

AnthonyMuscio commented 5 years ago

HI, As Stated in the latest release

"TiddlyWiki's experimental single tiddler per page, read-only view uses a simplified page layout, and implements links between tiddlers, but there are no other interactive features. Compared to a full TiddlyWiki user interface, it is very lightweight and usable even over very slow connections.

So I have started to experiment.

My initial conclusion This now demonstrates a very powerful alternative delivery mechanism. It loads tiddlers fast and can internally link between tiddlers. This is a great start. I would like to see an alternative method of dealing with system tiddlers that currently open blank, perhaps we should not display such links or tags if they will not show anything useful.

Where I think this may help

Where I would like to explore now I would like to have more control with the "page layout" of the served single tiddlers, such as -- Without any tiddler frame, just the Content (no Side bar) -- Ability to define what appears on the Sidebar and/or the ability to close it, or not even have it -- Ability for all links to be redirected to the server#address so that on opening a single tiddler further interaction is directed to the "Interactive TiddlyWiki" -- Ability to provide a "Switch to Interactive" mode button (Load the full wiki on Click, with the current tiddler open. -- Ability to add other page elements to the single tiddlers view like a header or menus that can reference or load other tiddlers or move into active mode. -- Perhaps even a selective active components like a search that is actually in the interactive wiki -- Be-able to open a Wiki with the single tiddler view "Look A like" but is actually in the full interactive wiki.

This simple experiment demonstrates switching from Static to Active and Back

 <a href="http://127.0.0.1:8080/#Single" target="_self">Active</a> 
<a href="http://127.0.0.1:8080/Single" target="_self">~InActive</a> 

Regards Tony

AnthonyMuscio commented 5 years ago

Post Script (as Usual) Ability to use this mechanism to deliver whole independent HTML pages at a Tiddlers address. Such that It may have a tiddler containing a full html document header and all, and the single tiddler delivers this. That is it allows someone to publish full html off a TiddlyWiki Server.

This mechanism can be designed to permit HTML with a javascript payload to work in a single tiddler view, but not within the active wiki. However using an iframe in an active wiki we can include the "static" single tiddler such that it appears in the active wiki and can execute javascript in that frame/page (only).

This in a way extends the single file model to include "separate" files within the same wiki.

Perhaps we could use a HTML include to bring in the content of an external html document then republish it through a Single Tiddler serving. Note as above this will not touch the local dom?

Regards Tony