The code in the previous post did it for ALL the tiddlers within the
current TW.
For completeness, this is the code that does it just for the current
tiddler tittle:
<currentTiddler>{{||$:/core/ui/TagTemplate}}
<br/>
<$set name="myVar" value=<<currentTiddler>>>
<$list filter="[tag<currentTiddler>!is[system]]">
<ul>
<$list filter="[is[current]!is[system]tags[]] -[<myVar>]">
{{||$:/core/ui/TagTemplate}}
</$list>
<$link><<currentTiddler>><$link/>
<br/>
Best regards!
On Saturday, November 12, 2016 at 9:56:03 PM UTC+1, Fidel N wrote:
>
> Yes, the way I use it is, in the default tiddler that appears whenever you
> create a new tag (with that tags name), i put this, so whenever I open a
> tag's main tiddler, I see all the tiddlers with that tag, see their other
> tags, but don't see the main tag all the time (hence the removing of that
> specific one).
>
> Here is the code in case its useful to someone else:
>
> <$list filter="[tags[]!is[system]]">{{||$:/core/ui/TagTemplate}}
>
> <$set name="myVar" value=<<currentTiddler>>>
> <$list filter='[is[current]tags[]]'>{{||$:/core/ui/TagTemplate}}</$list>
> <ul>
> <$list filter="[tag<currentTiddler>]">
> <li><$list filter='[is[current]tags[]] -[<myVar>
> ]'>{{||$:/core/ui/TagTemplate}}</$list><$link>{{!!title}}</$link></li>
>
> </$list></ul></$set>
> </$list>
>
>
> Still, I would like how to do that using a filter, just in case in the
> future I need to use a filter operation with a variable that contains more
> than 1 word...
>
> Thank you very much for your answer though, It totally solves the problem
> :)
>
>
> On Saturday, November 12, 2016 at 9:12:19 PM UTC+1, Mark S. wrote:
>>
>> There's no documentation explaining what the filter wants in terms of and
>> "array". But this variation seems to work:
>>
>> <$set name="myVar" value=<<currentTiddler>>>
>>
>> <$list filter='[is[current]tags[]] -[<myVar>]'></$list>
>> </$set>
>>
>>
>> Be sure to switch the tiddler out of edit mode -- this won't work in
>> preview mode (because the underlying title will be "Draft of my tiddler".)
>>
>> I'm not sure why you would want to run this, since it means you have a
>> tiddler tagged with it's own name.
>>
>> HTH
>> Mark
>>
>> On Saturday, November 12, 2016 at 11:04:05 AM UTC-8, Fidel N wrote:
>>>
>>> Hey guys, the following code only works when "myVar" contains one word.
>>> Whenever two words come out of it, the filter doesnt work properly,
>>> despite I confirmed the variable contains the two words it should (by
>>> trying it using <<myVar>> and checking that it has)
>>> Here is the filter I'm refering to, specifically, the "remove" order:
>>>
>>> <$set name="myVar" value=<<currentTiddler>>>
>>> <$list filter='[is[current]tags[]remove<myVar>]'></$list>
>>> </$set>
>>>
>>> How should I write myVar within the filter for it to work also when it's
>>> value contains two words?
>>>
>>> Thanks!!
>>>
>>>
--
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/1db4da64-5428-4b36-b8ce-e7e7efdb74af%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.