[TW5] Tabs Help

113 views
Skip to first unread message

reakt...@gmail.com

unread,
Aug 21, 2016, 10:39:15 AM8/21/16
to TiddlyWiki
Hiyas,

I'm having some difficulty understanding tabs, specifically, nested tabs. Here is my example TW - http://rbos.tiddlyspot.com/

What I have noticed is that if I already know what tiddler is going to be the nested tab, I can explicitly define the tag to filter, like in the below snippet, the "tag[Tab 04]" was manually entered. When it this way, I'm able to accomplish the nested list.

<$macrocall $name="tabs" tabsList="[all[shadows+tiddlers]tag[tab3]tag[Tab 04]!has[draft.of]sort[title]]+[nsort[sort]]"/>

My problem is though that I don't know what the tab would be called ahead of time and I need a way for the "tag[Tab 04]" to be more like a tag<currentTiddler>. What I have found is that if I use "tag<currentTiddler>" then the tabs only appear in the tiddler and not in the main tabs display, as a nested tab.

If I use "tag<currentTab>" then it works as intended in the main display but when I view the tiddler directly, it no longer displays. I've tried using a few different variants I found all over the web but can't seem to find the right answer. Could anyone help me through this?

Tobias Beer

unread,
Aug 31, 2016, 2:37:34 AM8/31/16
to TiddlyWiki
Hi,

Can you perhaps create a more specific example on your demo wiki
and comment directly in there where you're stuck with it?

Best wishes,

Tobias.

reakt...@gmail.com

unread,
Sep 1, 2016, 11:57:59 AM9/1/16
to TiddlyWiki
I didn't get a chance to update the wiki but I think this might be of some help - https://groups.google.com/forum/#!topic/tiddlywiki/xFs6zrFMNlo

The problem I'm running into is that I'm nesting the tabs. Once I create a tab, I'm trying to create tabs within that tab. If I use tag<currentTiddler> in my child tab, when I look at it from the parent tab, the "current tiddler" is the name of the parent tab's tiddler. If I use tag<currentTab> then it works correctly when viewing in the parent tab but when viewing the child tiddler, it's incorrect.

What I found works is when I explicitly declare the name of the tag. What I think I need to do is define something in the button code that uses the name of the current tiddler (parent) as the tag[] for the tabs macro.
Reply all
Reply to author
Forward
0 new messages