can i control in which order my tags (the tag pills) are displayed on top of my tiddlers?

104 views
Skip to first unread message

ch

unread,
Aug 22, 2016, 11:53:14 PM8/22/16
to tiddl...@googlegroups.com
hi,

i've tried to change the order in which the tag pills are displayed on top of my tiddlers, but it seems to be hard-coded to be in alphabetical order - is that possible to change, say i want tag "B" to be displayed before tag "A"? i know that you can control in which order titles are listed that is tagged with the same tag using a "list" field on the tag, but that's applicable here - it's how the tag pills that are displayed on top of every tiddler that i want to control how they are displayed - is that possible?

ch

Tobias Beer

unread,
Aug 28, 2016, 6:32:14 AM8/28/16
to TiddlyWiki
Hi ch,

I'm not sure why TiddlyWiki would impose an order other than the one defined.
Imho, it should not touch that and have the tags field be like any other "list-like-field",
persisted as is... so as to allow manual ordering.

In general, I would say TiddlyWiki must never sort things unless specifically instructed to.

Best wishes,

Tobias.

PMario

unread,
Aug 28, 2016, 9:22:47 AM8/28/16
to TiddlyWiki
Hi,

At the moment we don't have a convenient way to sort tiddler tags. That's probably the reason why TW uses sort[title]. You may change the template if you need a different behaviour

-mario

Tobias Beer

unread,
Aug 28, 2016, 9:30:21 AM8/28/16
to TiddlyWiki
Hi Mario,
 
At the moment we don't have a convenient way to sort tiddler tags.

Ah, I see, it's merely on the ViewTemplate end of things.

Let's hope we'll see drag and drop support soonish.

Best wishes,

Tobias.

Mat

unread,
Aug 28, 2016, 12:42:47 PM8/28/16
to TiddlyWiki
IMO this modified viewtemplate ought to work - if one has tags that are also real tiddlers with a pos:<nr> field;

<$reveal type="nomatch" state=<<folded-state>> text="hide" tag="div" retain="yes" animate="yes">
<div class="tc-tags-wrapper"><$list filter="[all[current]tags[]] +[nsort[!!pos]]" template="$:/core/ui/TagTemplate" storyview="pop"/></div>
</$reveal>

...however, it doesn't work.

<:-)
Reply all
Reply to author
Forward
0 new messages