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

84 مرّة مشاهدة
التخطي إلى أول رسالة غير مقروءة

Raghu Veer S

غير مقروءة،
16‏/04‏/2020، 8:37:37 ص16‏/4‏/2020
إلى 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

غير مقروءة،
16‏/04‏/2020، 9:15:57 ص16‏/4‏/2020
إلى 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

غير مقروءة،
16‏/04‏/2020، 10:12:59 ص16‏/4‏/2020
إلى 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

غير مقروءة،
16‏/04‏/2020، 10:58:32 ص16‏/4‏/2020
إلى TiddlyWiki
This is super neat! Thanks a lot.

Raghu Veer S

غير مقروءة،
16‏/04‏/2020، 11:28:14 ص16‏/4‏/2020
إلى 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

غير مقروءة،
16‏/04‏/2020، 12:22:15 م16‏/4‏/2020
إلى TiddlyWiki
Lin,
This is a great idea.

--Mohammad

Raghu Veer S

غير مقروءة،
16‏/04‏/2020، 1:56:20 م16‏/4‏/2020
إلى TiddlyWiki

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

Jed Carty

غير مقروءة،
16‏/04‏/2020، 5:08:16 م16‏/4‏/2020
إلى TiddlyWiki
I made a plugin that lets you export a wiki that has the editing pieces removed. https://ooktech-tw.gitlab.io/plugins/readonlycore/
الرد على الكل
رد على الكاتب
إعادة توجيه
0 رسالة جديدة