Folks,
Using Erics Tips;
here is an example of finding the current tiddlers position in a list of
the give tag "Code Patterns"
<$list filter="[[NOMATCH]] [enlist{Code Patterns!!list}] +[allbefore
<currentTiddler>count[]]" />
Regards
Tony
On Tuesday, January 14, 2020 at 10:30:36 AM UTC+11, TonyM wrote:
>
> Folks,
> I have an interesting idea, that requires the ability to get the position
> of a tiddlers title in a list field and return it as a number.
>
> So if we consider the tag $:/tags/ViewTemplate then on tiddlywiki.com the
> Tiddler $:/core/ui/ViewTemplate/subtitle would return three (3)
>
> I have a code pattern to achieve this using count, setWidget with its index
> parameter, and a range operator however it is quite long winded and
> possibly inefficient.
>
> Is anyone aware of an efficient way to determine the position of a given
> tiddler name in a list ?
>
> I will share the idea once get past this, in a separate thread. However I
> need to determine the position in a list many times over so an efficient
> method is critical.
>
> Thanks in Advance
> 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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/17a72c22-35bb-40d4-a9a3-b8dac6fe4ac1%40googlegroups.com.