The following code was a solution for a previous questions about keeping duplicates within a field.
<table>
<$list filter="[each[myField]get[myField]]
:filter[all[tiddlers]myField<currentTiddler>count[]compare:number:gt[1]]">
<tr>
<td><<currentTiddler>></td>
<td>{{{ [myField<currentTiddler>] }}}</td>
</tr>
</$list>
</table>
<table>
<$list filter="[has[myField]get[myField]unique[]sort[]]" variable="fieldvalue">
<$list filter="[myField<fieldvalue>count[]compare:number:gt[1]]">
<tr><td><<fieldvalue>> </td>
<td>{{{ [myField<fieldvalue>] }}} </td>
</tr>
</$list>
</$list>
For the second solution, I think that the first filter should be simplified to
[has[myField]get[myField]sort[]]
because has
assure that each title kept provides a unique value for the field. Am I right?
And for its second filter, how can a filter name (myField
) be used as a filter operator? If I understand the intent, [myField<fieldvalue>]
would be equivalent to [get[myField]enlist-input[raw]match<fieldValue>]
. Am I right in the latter and what is happening with the first syntax, which I can’t make working with tw5.3.1.