[TW5] I want sidebar links

272 views
Skip to first unread message

Andrew Singleton

unread,
Aug 17, 2015, 2:11:48 AM8/17/15
to TiddlyWiki
I want the default sidebar to be gone when I upload the wiki (though I would like it there for when I'm actually doing stuff before uploading.P In its place i want a sidebar with a dropdown set of links for 'about'. 'links,' 'opinions', Journal' and so on. Something that's easy to navigate no matter where you are in the wiki's structure. How do i do that?

Mat

unread,
Aug 17, 2015, 2:30:14 AM8/17/15
to TiddlyWiki
How to add a new tab to the sidebar should give you a good start.

And under Ctrlpanel > Settings you can set which is to be the default sidebar to show on startup.

I suggest you start there even though this assumes and instructs how to add it to the existing sidebar which is not exactly what you describe. 

To make the uploaded TW not show the regular sidebar is a little trickier and there are many ways to go. Before going deeper in to this, it's good to know more specifically what you want. Ideally you'd provide an illustration. For instance, should the title+subtitle+page controls be there? Could your own "sidebar" be a tab so that you have this appear all the time but when uploaded, this is the only tab that appears?

<:-)

Andrew Singleton

unread,
Aug 19, 2015, 1:28:54 AM8/19/15
to TiddlyWiki
Well I'm using this as a neocities site. So just want something to show people.

Jed Carty

unread,
Aug 19, 2015, 3:18:23 AM8/19/15
to TiddlyWiki
That sounds a little like what I was going for with my icon menus. I go here and hover over the left side of the screen.

Mat

unread,
Aug 19, 2015, 9:35:56 AM8/19/15
to TiddlyWiki
On Wednesday, August 19, 2015 at 7:28:54 AM UTC+2, Andrew Singleton wrote:
Well I'm using this as a neocities site. So just want something to show people.


I posted this on the boards yesterday, asking people if there is a way to sense the current url. If I get any answer to this I could make a simple solution that shows one view when you're working on your local TW and another when it's elsewhere.

I just made this as an alternative solution for you. It looks at the username instead (by defaut: no user name = hide the normal sidebar lists and instead show your special content) but really think a url-sensing variant would be better.

Ok, hope this or Jeds answer is of any use.

<:-)




Mat

unread,
Aug 19, 2015, 9:52:49 PM8/19/15
to TiddlyWiki
Okidoki, thanks to BuggyJ's url-detector, I made this:


What is actually needed is a real theme (an "edition"?) for public TW-websites though to deal with all the UI stuff that is inappropriate for the public.

<:-)

Andrew Singleton

unread,
Aug 20, 2015, 12:02:00 PM8/20/15
to TiddlyWiki
Mat, you're a pretty awesome guy. Thank you.

BJ

unread,
Aug 20, 2015, 12:06:54 PM8/20/15
to TiddlyWiki
Its looking good!
it would be better to use the hostname rather than href as href can include the #tiddlername (eg publicsidebar.tiddlyspot.com/#PublicMenu)
cheers

BJ

Mat

unread,
Aug 20, 2015, 1:14:47 PM8/20/15
to TiddlyWiki
Thanks for the kind words guys.

@BJ regarding:
it would be better to use the hostname rather than href as href can include the #tiddlername (eg publicsidebar.tiddlyspot.com/#PublicMenu)


I tried to deal with this - but please tell me if this is a bad approach - by having the user filter it by prefix, i.e;

<$set name="loc" value=<<location 'href'>>>
<$list filter="[
<loc>]+[prefix[http://publicsidebar.tiddlyspot.com]]">

Would hostname still be a better choice? I am unsure what the difference is between host, hostname and origin.

<:-)

BJ

unread,
Aug 20, 2015, 3:45:07 PM8/20/15
to TiddlyWiki
they are defined as

host Sets or returns the hostname and port number of a URL
hostname Sets or returns the hostname of a URL
href Sets or returns the entire URL
origin Returns the protocol, hostname and port number of a URL

see http://www.w3schools.com/jsref/obj_location.asp

Its easier to use hostname so there is less chance that things may break!

Mat

unread,
Aug 21, 2015, 3:33:45 AM8/21/15
to TiddlyWiki
Thanks for the explanation and the link BJ. Interesting to read.

I've updated http://publicsidebar.tiddlyspot.com/ to use hostname.

<:-)

Diane

unread,
Sep 30, 2015, 9:41:30 PM9/30/15
to TiddlyWiki
Is there a place to find beginner information on how to use Public Sidebar? For example, what exactly does one edit to specify the website where the Publice Sidebar will be visible? In $:/PublicSidebar/main should I change publicsidebar.tiddlyspot.com to my site name?

Mat

unread,
Oct 1, 2015, 3:21:26 AM10/1/15
to TiddlyWiki
Hi Diane. "Public Sidebar" is just a thing I put together so there's no "beginner information" or official docs on it. But do note that in the menu showing in the sidebar there, there is some guidance.

But, yes, in the ".../main" you should simply edit it to state your own domain so it applies there instead. Take care to use the same format, e.g do not include the "http" at that place.

If your unsure, just install it into another copy of your TW and experiment. 

Maybe that is enough of a start to get things working for you. Otherwise, the main thing to understand is CSS because this is what is used to style things. 

<:-)

Tobias Beer

unread,
Oct 1, 2015, 3:47:44 AM10/1/15
to tiddl...@googlegroups.com
Hi Jed,

The top-right of your icon menus wiki looks quite scrambled.
Would you be seeing that differently?


Best wishes,

— tb

Jed Carty

unread,
Oct 1, 2015, 6:19:56 AM10/1/15
to TiddlyWiki
Oh, it looks like that is because the title part is too long to fit on most screens. I keep forgetting that I should test these things on smaller monitors than I develop on. I will try to add something to limit the width of each menu. Thanks for pointing it out!

Tobias Beer

unread,
Oct 1, 2015, 3:54:41 PM10/1/15
to TiddlyWiki
Hi Jed,
 
I keep forgetting that I should test these things on smaller monitors than I develop on.

Wow, I never thought my full-hd display would've be called small that soon. :D

Best wishes,

— tb
Reply all
Reply to author
Forward
0 new messages