I *think* I figured out a way for it to work either way. It requires using
something like tobibeer's eval plugin or another plugin that lets you do
mathematical operations in a filter. I'm using tobibeer's eval for my
example.
First make a list of your tags. Within that list widget, do the following:
1) Use a set widget to get a count of the tiddlers with that tag and store
it in a variable
2) Use a list widget that uses the range[] list operator to generate a
range of numbers, making sure you use the variable from step 1 as the
argument for the range[] operator
3) Use a set widget to contain a modified index number. We'll modify this
number by adding 1000 to the number generated by the range[] operator.
Then we'll remove the 1 prefix from the result. This is what should happen:
1 ---> 1001 ---> 001
37 ---> 1037 ---> 037
837 ---> 1837 ---> 837
4) Next, use either a set or list widget with a filter that gets all of
your tiddlers with the specified tag, then use the nth[] operator with the
value we got from the range[] operator in step 2 (not the one we got from
step 3, idk if it will work). That should get you the corresponding item.
I can't guarantee this will work as I don't have a comparable set of
tiddlers to work with to test this.
On Sunday, June 23, 2019 at 12:26:03 AM UTC-5, Andrei Teodorescu wrote:
>
> Hi,
>
> After hitting a button will be great but it has to take into consideration
> that incrementin should be based per tag - nextvalue might be different per
> each application tag (e.g. 5 articles with tagA, next one will be 006 -
> ..., 2 articles with tagB, next one will be 003).
>
> Regards,
> Andrei
>
> On Sun, 23 Jun 2019, 8:09 am David Allen, <[email protected]
> <javascript:>> wrote:
>
>> Will this list be displayed/generated after hitting a button or when the
>> tiddlywiki loads? I ask because I think I know how to do the first one but
>> not the second one
>>
>> On Saturday, June 22, 2019 at 3:51:51 PM UTC-5, Andrei Teodorescu wrote:
>>>
>>> Hi,
>>>
>>> We just started customizing tiddlywiki in a team of 6 and we have the
>>> following knowledge management scenario:
>>> - we are creating a knowledge base for several applications (each having
>>> its own tag)
>>> - for each application, there will be one tiddler in the Table of
>>> Contents containing all tiddlers with its specific application tag
>>> We would like to have a list for each tag, with number prefix of 3
>>> digits for each tiddler.
>>>
>>> How can we achieve this?
>>>
>>> E.g.
>>> How to cleanup logs --> 001 How to cleanup logs
>>> How to build an index --> 002 How to build an index
>>> Error 504 received while login --> 003 Error 504 received while login
>>>
>>> Regards,
>>> Andrei
>>>
>> --
>> 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] <javascript:>.
>> To post to this group, send email to [email protected]
>> <javascript:>.
>> 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/a261229f-b292-4a11-999f-cc4e810a0547%40googlegroups.com
>>
>> <https://groups.google.com/d/msgid/tiddlywiki/a261229f-b292-4a11-999f-cc4e810a0547%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
--
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 post to this group, send email to [email protected].
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/e377faf4-b88d-4552-bd3e-cada464fdc61%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.