CSS question: can I modify display based on server hostname in the http call?

30 views
Skip to first unread message

Lost Admin

unread,
Nov 29, 2018, 12:42:33 PM11/29/18
to tiddl...@googlegroups.com
Probably best to explain with examples so ...

If I go to https://admin.example.com/website/ I want have the sidebar (and edit-tools) show. This would be the default behavior for tiddlywiki.

But if I go to https://website.example.com/ I will be shown the same tiddlywiki file but I want to hide all the editing/admin functionality of tiddlywiki so it looks more like a normal website.

I'm using Tiddlywiki as a sort of CMS for some very small hobby projects. I want the public facing side of things to look like normal websites. I expect I should be able to have CSS that makes the administrative parts of tiddlywiki display:none. I've seen some examples of conditional display (related to screen resolution). Is there a way to do it based on hostname or a cookie (I could have the web server set a cookie).

Jeremy Ruston

unread,
Nov 29, 2018, 12:46:19 PM11/29/18
to tiddl...@googlegroups.com
Hi Lost Admin

You should be able to set up a startup action that examines the URL pathname and assigns different values to configuration tiddlers accordingly. See:


Best wishes

Jeremy.

--
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/3c082e88-631a-4070-84aa-55afcc329413%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages