How to reorder tabs?

Hello everyone.

I have created a tab in the sidebar in which other vertically oriented tabs appear using the tc-vertical tc-sidebar-tabs-more macro.
What I want to do is have them sorted by a pre-established order using a list field, but I can’t do it.

This is the code I am using:

<div style="padding:0 10px;"class=tc-more-sidebar>
<$macrocall $name=tabs tabsList="[all[tiddlers+shadows]tag[$:/tags/Mond]!has[draft.of]] -[<tidExcludeCtabsConfig>indexes[]]"class="tc-vertical tc-sidebar-tabs-more"default=Ideas/>

In the tiddler I have the list field with a relationship for the order that I want to get in the sidebar.

[[Diary persl]] [[Reflex pers]] Questions Ideas

I got the code from Mohammad’s Mehregan, and I also failed trying to reorder the order of the tabs in that plugin…

Do you have any idea why the code doesn’t work for me?

Thank you.

If the tiddler $:/tags/Mond has a list field, the tabs should be sorted according to the order in the list field.

Not directly related, but you should use [all[shadows+tiddlers].. – See shadows first. Otherwise your tiddlers will be overruled by the shadow content

2 Likes
  1. You should apply sort in your tabsList which accepts a filter.

  2. Also in he list field of tiddler $:/tags/Mond lthe order of tiddlers tagged with $:/tags/Mond is stored. You can manually click on the tag pill of one of tiddlers tagged with $:/tags/Mond and reorder them by drag and drop.

2 Likes

Okay, I get it. I was putting the sorted list in the tiddler where I have the tab grouping, not in the tiddler with the label. Now it works for me.

Thank you very much @atronoush and @pmario.

1 Like