You need the *[[]]* when using two or more words with spaces. *[[Another 
Tag]]*

If you did not use *[[Another Tag]]*, you would end up with 2 tags. 
*Another* and *Tag*

On Friday, October 8, 2021 at 4:45:43 AM UTC+2 gavin....@gmail.com wrote:

>
> Finally got it to work. The tiddler titled $:/config/TagsOrder (and also 
> tagged $:/config/TagsOrder) had to have each tag incased in [[*]] 
> notation and line separated
> [[Tag]]
> [[Another Tag]]
> [[An Yet Another]]
>
> I don't know why it wouldn't work otherwise. I wish there was a way to set 
> tag precedence rather than have to arrange ALL tiddlers. I did appreciate 
> Eric's button code which pulled in all the tiddlers, though! :)
> On Thursday, October 7, 2021 at 1:14:08 PM UTC-7 Gavin Gamboa wrote:
>
>> Also I am not sure if I am understanding Eric's suggestion for the tag 
>> ordering in the new TagsOrder tiddler:
>>
>> Then, you can enter tag names into $:/config/TagsOrder, and the display 
>> of tags in the ViewTemplate will show those tags in the order specified.
>>
>> Do we put that in a new list field within the tiddler itself, or do we 
>> put our own <$list> widget in the tiddler text body, or do we just list the 
>> tags as we would in a list field, but this time in the main text body of 
>> the tiddler i.e. Topic [[New Topic]] Fiction [[Non-Fiction]] …… ?
>>
>>
>> On Thursday, October 7, 2021 at 12:20:17 PM UTC-7 Gavin Gamboa wrote:
>>
>>> How would we achieve this without altering the core/ui shadow tiddler? 
>>> Is there a way to make upgrades less of a nightmare and overriding the 
>>> $:/core/ui/ViewTemplate/tags with our own template ? (I haven't done 
>>> any deep customization such as this before so sorry ahead of time if it's 
>>> an obvious answer.)
>>>
>>> On Monday, December 21, 2020 at 1:52:05 PM UTC-8 TW Tones wrote:
>>>
>>>> Eric,
>>>>
>>>> Thanks for this insight. controlling the tags list is useful. 
>>>>
>>>>
>>>>    - It does however make me ask if there were a way to use sortby so 
>>>>    that the "named" tiddlers were at the beginning and the balance sorted 
>>>>    following.
>>>>
>>>>
>>>> The sortby or another method allows a select set of tiddlers to have 
>>>> their prominence enhanced through sorting, but its not very prominent if 
>>>> they are at the end of the list.
>>>>
>>>>
>>>>    - I have used your way to define a newline variable before, thanks. 
>>>>    But do you know anyway to get it into a global macro?
>>>>
>>>> Regards
>>>> Tones
>>>>
>>>>
>>>> On Monday, 14 December 2020 at 17:56:02 UTC+11 Eric Shulman wrote:
>>>>
>>>>> Hi all,
>>>>>
>>>>> Recently, someone asked me if it is possible to apply a custom order 
>>>>> to the tags that are displayed on a tiddler, and I came up with a 
>>>>> one-line 
>>>>> adjustment to the tags ViewTemplate that achieves this:
>>>>>
>>>>> edit the $:/core/ui/ViewTemplate/tags shadow tiddler and change this 
>>>>> line:
>>>>> <div class="tc-tags-wrapper"><$list 
>>>>> filter="[all[current]tags[]sort[title]]" 
>>>>> template="$:/core/ui/TagTemplate" 
>>>>> storyview="pop"/></div>
>>>>> to this:
>>>>> <div class="tc-tags-wrapper"><$list 
>>>>> filter="[all[current]tags[]sort[title]sortby{$:/config/TagsOrder}]" 
>>>>> template="$:/core/ui/TagTemplate" storyview="pop"/></div>
>>>>>
>>>>> The only change is adding "*sortby{$:/config/TagsOrder}*" to the 
>>>>> $list filter.
>>>>>
>>>>> Then, you can enter tag names into $:/config/TagsOrder, and the 
>>>>> display of tags in the ViewTemplate will show those tags in the order 
>>>>> specified.
>>>>>
>>>>> Note that any tags not included in the config tiddler will be listed 
>>>>> first, in the default alphanumeric order.  Thus, if the config is empty 
>>>>> or 
>>>>> non-existent, the current TWCore default behavior is retained.
>>>>>
>>>>> Also, if there are a lot of tags to be listed, you can auto-generate 
>>>>> the initial contents of $:/config/TagsOrder by using the following 
>>>>> $button:
>>>>>
>>>>> <$vars lf="
>>>>> ">
>>>>> <$set name="taglist" filter="[tags[]trim[]sort[]addsuffix<lf>join[]]">
>>>>> <$button> make initial ~TagsOrder
>>>>>    <$action-setfield $tiddler="$:/config/TagsOrder" text=<<taglist>> />
>>>>> </$button>
>>>>> (note that the literal newline following lf=" is important)
>>>>>
>>>>> This outputs all the current tags, one per line, into the text field 
>>>>> of $:/config/TagsOrder.  You can then edit the tiddler to 
>>>>> add/delete/re-arrange the tags to suit your needs.
>>>>>
>>>>> enjoy,
>>>>> -e
>>>>> T
>>>>>
>>>>>   
>>>>>
>>>>>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/4852d409-e55c-47db-a79d-ac8ac88ec1d5n%40googlegroups.com.

Reply via email to