Hide editing buttons when online?

83 views
Skip to first unread message

Dave Gifford - http://www.giffmex.org/

unread,
Jan 27, 2019, 9:33:12 PM1/27/19
to TiddlyWiki
Hi all

I seem to recall there being a way to hide editing tools such as the tiddler view toolbar (more, edit, close) when online so it is read only. Maybe I am thinking of TW classic?

I looked at Ton Gerner's read only plugin and the simple version. But they seem to call up a separate readonly window.

I am just looking for something where when you open the TW online, the viewtoolbar buttons will not be visible. (Since everything will be navigated within vertical tabs anyway.)

Does that exist?

Marc Ferguson

unread,
Jan 27, 2019, 10:25:11 PM1/27/19
to tiddl...@googlegroups.com
Dave I have a question? Is there a find and replace function in TW?

Sent from my iPhone
--
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 tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
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/8563e410-ee2d-4184-91fa-b06f6f94a0ca%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

TonyM

unread,
Jan 28, 2019, 2:04:27 AM1/28/19
to TiddlyWiki
Dave,

Depends on what you mean about online. I believe their is a solution allready.

Something I have done is move edit and other buttons behind the more button (unchecked in ToolBar settings) then also hide the more button as well. Now no one can access the edit button. Now Clone the edit button and wrap it's code in a test "list or reveal", such it will only show when the condition is true, make sure this new edibutton is checked in the Toolbar settings (Instead of the real one).

Now you choose your condition. Perhaps show it if {{$:/info/url/protocol}} is file:

Repeat for each button you want to hide, Just "more" may be enough.

Regards
Tony

TonyM

unread,
Jan 28, 2019, 2:06:31 AM1/28/19
to TiddlyWiki
Marc, More details where is this text?

  • There is one for in edit mode
  • You can do the equivalent in someways with tags
  • But you do not think you can do a global search and replaces without editing the actual HTML file (IF so be careful)

Tony

@TiddlyTweeter

unread,
Jan 28, 2019, 5:21:17 AM1/28/19
to TiddlyWiki
Dave Gifford - http://www.giffmex.org/ wrote:
I seem to recall there being a way to hide editing tools such as the tiddler view toolbar (more, edit, close) when online so it is read only.

 As far as I grasp it the best very GOOD routes to HIDING are ...


   and

stef -- https://groups.google.com/d/msg/tiddlywiki/JeuinlhzMNU/pcQWJ9IFCQAJ (I think there is a later website for it ... just can't find it)

The issue in both cases is you apply the "hiding" before upload. It is not dynamically applied. They don't detect context. They don't know if they are on-web or off-line.

In the longer term, especially with growth of Android usage, may be to use Startup Actions that draw on info from the InfoMechanism and then dynamically apply a "Read Only"  HIDER. 

"Hiders" can work by either / or / and: switching OFF bits of CSS or by removing tags or whatever is needed. 

(Sidenote: FWIW the terminology here is confusing. Its NOT  really "Read Only", simply you want to "Hide" bits of the interface. Its confusing because the TW remains fully dynamic and anybody who has played with TW will know how to subvert restrictions. "Read Only" should be limited IMO to when there is no serious Javascript TW operating at all. Usually that means "Static" sites. Here we just mean "Hiding Some Dynamics". AKA --> A Noble Pursuit of Simplification For Readers <--)

HOW to do application of "Hider" dynamically on startup I'm not sure. But the mechanisms are there and I'm sure someone with skill will get into it yet.

Yours with CAPITAL notes :-)
Josiah, x

Dave Gifford - http://www.giffmex.org/

unread,
Jan 28, 2019, 6:30:37 AM1/28/19
to tiddl...@googlegroups.com
Hi all

Thank you for your suggestions. I am looking for a solution that won't make my life miserable when creating and editing content on my computer.

Based on Tony's comment I created a tiddler where I added fields to edit the text of $:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/close and $:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/edit and made it accessible in page controls. That way I can quickly hide them before uploading them, and quickly unhide them after uploading.

Thank you all very much!

Dave

Dave Gifford - http://www.giffmex.org/

unread,
Jan 28, 2019, 6:32:35 AM1/28/19
to TiddlyWiki
Oh and by the way, that feature I was thinking of WAS from TiddlyWiki classic. In the advanced settings of TW classic is a checkbox "Hide editing features when viewed over HTTP"

Dave

On Sunday, January 27, 2019 at 8:33:12 PM UTC-6, Dave Gifford - http://www.giffmex.org/ wrote:
Reply all
Reply to author
Forward
0 new messages