Is there a way to programmatically disable/remove the edit and create new tiddler buttons before uploading it to a hosting site

Visto 84 veces
Saltar al primer mensaje no leído

Raghu Veer S

no leída,
16 abr 2020, 8:37:3716/4/20
a TiddlyWiki
I am hosting my tiddlywiki  in github along with my main blog, I wanted to know if there was a way to disable or remove the create tiddler, edit tiddler, and control panel buttons before uploading the html file to github. Currently I am doing it manually, which is quite tedious, any way to automate it would be really helpful.

Note: I understand that the wiki cannot be edited online, but I wanted to know if there was a way to accomplish that so that I could remove those buttons and try to provide a more seamless experience.

TonyM

no leída,
16 abr 2020, 9:15:5716/4/20
a TiddlyWiki
Are you using control panel appearance toolbars to hide the buttons?

if so toggle thier visibility then use [haschanged[]] in the advanced search tab to see the visibility tiddlers that were changed. Export those tiddlers set to "hide" as a json file. May as well set them to show and export them as another file.

Then before you upload drop the hide json and import them. When editing drop the show json on the wiki. If you look for making bookmarklettes you can even have a book mark trigger this.

Of course you could set a lot more settings this way.

Regards
Tony

Lin Onetwo

no leída,
16 abr 2020, 10:12:5916/4/20
a TiddlyWiki
Hi Raghu,

You can achieve this by using a special template, just like normally we save nodejs wiki to HTML wiki using $:/core/save/all 
You can create a template similar to that ,but exclude the buttons and codemirror plugins.

I also think about this before, I want to exclude codemirror plugin to make my wiki page smaller, since I will not do heavy edit on the static site.


Raghu Veer S

no leída,
16 abr 2020, 10:58:3216/4/20
a TiddlyWiki
This is super neat! Thanks a lot.

Raghu Veer S

no leída,
16 abr 2020, 11:28:1416/4/20
a tiddl...@googlegroups.com
It worked. Thanks Again!

Btw when you said to use bookmarklet, did you mean to import corresponding json into the wiki? If so, how would you use bookmarklets to achieve that?


On a different note, wouldn't this unnecessarily increase the size of the wiki?
(I do not know how the import mechanism works, my guess is each of these imports are extra <div> tags or js functions, that might add to the overhead. Please do let me know if that is not the case)



On Thursday, April 16, 2020 at 6:45:57 PM UTC+5:30, TonyM wrote:

Mohammad

no leída,
16 abr 2020, 12:22:1516/4/20
a TiddlyWiki
Lin,
This is a great idea.

--Mohammad

Raghu Veer S

no leída,
16 abr 2020, 13:56:2016/4/20
a TiddlyWiki

Thanks Lin. Is there a way to achieve this with standalone wiki?

Jed Carty

no leída,
16 abr 2020, 17:08:1616/4/20
a TiddlyWiki
I made a plugin that lets you export a wiki that has the editing pieces removed. https://ooktech-tw.gitlab.io/plugins/readonlycore/
Responder a todos
Responder al autor
Reenviar
0 mensajes nuevos