

I will look in more detail later, but remember if you have a macro that generates a list of titles you can use that macro in a widget or other macro to act on the members of that list.
I know its a quick tip only but may get you there.
Tony
--
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+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
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/a83417bb-6080-470d-be18-eeaac931c8f3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
<$set name="mylist" filter="[tag[Filter Operators]]">
List the related tags of tiddler list
<$list filter="[enlist<mylist>tags[]]"><li><<currentTiddler>></li></$list>
List the tiddler list itself
<$list filter="[enlist<mylist>]"><li><<currentTiddler>></li></$list></$set>
--
Mohammad
Brian,
Does enlist work with title have space?
Cheers
Mohammad
<$set name="v" value="""a b "this is a test" [[title with space]] """>
<$list filter="[enlist<v>]" >
<<currentTiddler>><br>
</$list>
</$set>a
b
"this
is
test"
title with spacea
b
this is test
title with space--
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+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
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/f0217ea8-37a1-4581-8615-3654c825b548%40googlegroups.com.
```In the list of tiddlers If tiddler meets a condition Add its tags to a list of tags endend
Filter out duplications from the list of tagsShow the list of tags```
<$list filter="[has[myfield]tags[]]"><$text text="[["/><$view field=title/><$text text="]]"/></$list>The above example would require text=""" text here """ surely?
Thanks for the feedback
Tony
The value in your example for text=
Includes quotes " so you have to wrap the whole value in """tripple quotes""" to delimit where the value begins and ends.
Regards
Tony
Why not create a single filter that lists the tags of all tiddlers that meet your required condition?
You could set a variable using the set widget and its filter parameter and every time you use your new variable it will contain what you are asking for and remain upto date. Put it in a global macro if you want it available globaly.
You see, tiddlywiki is made for handling its own content, by trying to picture the process as we would in a proceedural language we make it harder than it need be.
I will post the actual filter if you ask.
Regards
Tony
\define mytiddlerslist(myfield)
<$list filter="[has[$myfield$]tags[]]"><$view field=title/> </$list>
\end
<div class="dynamic-table">
<$wikify name="mytiddlers" text=<<mytiddlerslist caption>>>
<$list filter=<<mytiddlers>> >
<span class="ditem">
<$transclude tiddler="$:/core/ui/TagTemplate"/>
</span>
</$list>
</$wikify>
</div>
<style>
.dynamic-table {
max-width:700px; /* could transclude tiddler width instead */
-ms-box-orient: vertical;
display: -webkit-box;
display: -moz-box;
display: -ms-flexbox;
display: -moz-flex;
display: -webkit-flex;
display: inline-flex;
-webkit-flex-wrap: wrap;
flex-wrap: wrap;
flex-direction: row;
}
.ditem {
max-width:160px; min-width:160px;
flex: 0 0 2em; /* -grow, -shrink, -basis */
}
</style>Enter code here...Mark,
What I am curious about it is as below
- Is this a way to use the value of some variable in different scope or program flow as Bimlas asked in his first post?
- Why the code does not work without wikify widget? This is important question: why maco call cannot directly be used?
-- Mohammad
\define conc() comment on {{!!title}}
\define create-commentTid()<$wikify name="ctitle" text=<<conc>> ><$action-createtiddler $basetitle=<<ctitle>> $savetitle="$:/temp/commentName" relationship="comment" parent=<<currentTiddler>> /> <$action-navigate $to= {{$:/temp/commentName}} /></$wikify>\end
<$button actions=<<create-commentTid>> >Click to make a comment </$button>
;Unique Tags on All tiddlers that are "Filter Operators"
<$list filter="[tag[Filter Operators]tags[]sort[]] -[[Filter Operators]]">
{{||$:/core/ui/TagTemplate}}
</$list>
;List of All Filter Operators and the tags on each
<$list filter="[tag[Filter Operators]]">
<$list filter="[all[current]tags[]sort[]] -[[Filter Operators]]" variable=tag>
<<currentTiddler>>: <$view tiddler=<<tag>> field=title/><br>
</$list>
</$list>Bimlas,I will look in more detail later, but remember if you have a macro that generates a list of titles you can use that macro in a widget or other macro to act on the members of that list.
I know its a quick tip only but may get you there.
Tony
;Unique Tags on All tiddlers that are "Filter Operators"
<$list filter="[tag[Filter Operators]tags[]sort[]] -[[Filter Operators]]">
{{||$:/core/ui/TagTemplate}}
</$list>
;List of All Filter Operators and the tags on each
<$list filter="[tag[Filter Operators]]">
<$list filter="[all[current]tags[]sort[]] -[[Filter Operators]]" variable=tag>
<<currentTiddler>>: <$view tiddler=<<tag>> field=title/><br>
</$list>
</$list>