Timelines filtered by custom tag

83 views
Skip to first unread message

Angelo Gaggero

unread,
Oct 8, 2018, 12:56:20 PM10/8/18
to tiddl...@googlegroups.com
Hi All, 

trying to get a timeline via the <<timeline>> macro, filtered by custom tag selected by the user via dropdown menu, but it seems that the subfilter field is not managing variable filters like tag{!!intag} ... any idea? 


My page is something like 



''Include tag:
''
<$select field=intag default='unknown'>
<$list filter='[all[tiddlers]tags[]sort[title]]'>
<option value=<<currentTiddler>>><$view field='title'/></option>
</$list>
</$select>

''Exclude tag:
''
<$select field=extag default='unknown'>
<$list filter='[all[tiddlers]tags[]sort[title]]'>
<option value=<<currentTiddler>>><$view field='title'/></option>
</$list>
</$select>




''Matching tiddlers:
''
this is a simple list of mathing tiddlers inserted here as debugging ...

<$list filter=[tag{!!intag}]+[!tag{!!extag}] />


''Timeline filtered by tag  {{!!intag}}''

<<timeline limit:300 subfilter:"tag{!!intag}" format:"DD MMM YYYY">>


TonyM

unread,
Oct 8, 2018, 7:03:29 PM10/8/18
to tiddl...@googlegroups.com
Try;

<<timeline limit:300 subfilter:"[tag{!!intag}]" format:"DD MMM YYYY">>

Unfortunately there is not a lot of helpful error messages when a filter throws basic errors inside other macros.

Also Why not

<$list filter="[tag{!!intag}]+[!tag{!!extag}]" />

or
<<timeline limit:300 subfilter:"[tag{!!intag}]+[!tag{!!extag}]" format:"DD MMM YYYY">>

Suggestions untested.

Regards
Tony

TonyM

unread,
Oct 8, 2018, 7:04:51 PM10/8/18
to TiddlyWiki
Correction (applied in forum post, remove errant "

<<timeline limit:300 subfilter:"[tag{!!intag}]+[!tag{!!extag}]" format:"DD MMM YYYY">>



Angelo Gaggero

unread,
Oct 9, 2018, 3:30:56 AM10/9/18
to TiddlyWiki
Hi Tony,  
unfortunately this is not working... thanks anyway for your help.



Reply all
Reply to author
Forward
0 new messages