Mohamad
See the following
<$list filter="[all[]prefix[New]has[field]]">
<$link/> {{!!field}} {{{
[all[]prefix[New]!title<currentTiddler>get[field]match{!!field}then[*]]
}}}<br>
</$list>
- First we list All tiddlers satisfying [all[]prefix[New]has[field]]
- Then we display a link to each tiddler and the value in field
- Then inside the filtered transclusion (could be in a list) we now
search all tiddlers (again) excluding the current tiddler, if another
tiddler has the same value for {{!!field}} we display an Asterix.
It gets a little more complex if you want to select one as a the duplicate
and the other as the original but if so you need to decide the condition to
determine the first. Eg oldest in the primary, youngest is the duplicate.
Regards
Tones
On Friday, 30 July 2021 at 10:20:59 UTC+10 [email protected] wrote:
> thanks tones
>
> for the second method , would that display the duplicates , because i
> want that
>
> On Friday, July 30, 2021 at 1:37:33 AM UTC+2 TW Tones wrote:
>
>> Mohamad,
>>
>> One way is to sort in the parameter order before you can detect that the
>> last is the same as the current ie a duplicate.
>>
>> The other way is for each tiddler, search for the same parameter
>> elsewhere, if more than one found then it is duplicate before displaying
>> the parameter.
>>
>> - If you do this you may need to add to the filter the one that
>> selected the list of tiddlers as well, so you don't find the parameter
>> elsewhere. ie you are only searching in the current list of tiddlers.
>>
>> Regards
>> RTones
>> On Friday, 30 July 2021 at 09:03:33 UTC+10 [email protected] wrote:
>>
>>> Hi ,
>>>
>>> is it possible to highlight duplicates in a list , or make them stand
>>> out in a different format/color , you know similar to excel
>>>
>>> so in the below example ,i have a list that returns tiddlers matching a
>>> certain criteria , and then displays their title field value , and also the
>>> value in a custom field i named "field_example"
>>>
>>> tiddler1 and tiddler4 have the same value in the custom field and the
>>> value is "X"
>>>
>>> can i highlight tiddler 1 and tiddler 4 maybe in red ?
>>>
>>> [image: duplicates.PNG]
>>>
>>
--
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 view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/8976fbd6-a218-4ad4-9eec-0814a060d3afn%40googlegroups.com.