[TW5] Edit field of tiddlers under the same tag every time one of those tiddlers is updated or created.

187 views
Skip to first unread message

Penguinlay

unread,
Dec 20, 2016, 4:25:54 PM12/20/16
to TiddlyWiki
The goal is to create a group of tiddlers with a common tag and a common field.
Field values will be numbers.
Later, filter tiddlers by that tag or field, and display a story list of all those tiddlers in the order of field value or title upon a button click.

The help I need here is that whenever I add a tiddler with a field and save it (or edit an existing one), I want to check the field value of current tiddler against existing field values of tiddlers with the same tag and field and update as needed.

So, for example, if the new tiddler has its field value to be 5, then I want to check the value of field of tiddlers of the same tag. If there are values greater than or equal to 5, edit those by increasing one. The same way for deleting the tiddler.

How may I accomplish it?

Please tell me if you need anymore clarification.

Thank you in advanced.

Jed Carty

unread,
Dec 20, 2016, 5:47:29 PM12/20/16
to TiddlyWiki
That is going to be a bit complex. I have a few plugins that may be able to work together to do it but it is probably going to be a bit difficult. I made a plugin that triggers some action widgets when certain things are updated and I made a widget that would increment a field by a set value.

Penguinlay

unread,
Dec 21, 2016, 12:26:27 AM12/21/16
to TiddlyWiki
Hi, Jed. Thanks for the reply.

The main reason for my question is that I want to open a list of tiddlers in a custom order (where the order may change from time to time and does not depend on title). So, I am trying out your plugins right now, but meanwhile, is there a better approach to my need rather than the one I posted above?

Penguinlay

unread,
Dec 21, 2016, 12:30:24 AM12/21/16
to tiddl...@googlegroups.com
I knew a method of using list field, manually inputting each title in custom order, and then creating an action button to generate story list. This did not work for me for two reasons. One is that the title will be long and will change later. Another is that the tiddlers I am dealing with will be a lot to manually enter the title for each of them. I won't know how to edit all those interwiki links to a tiddler whenever I change that tiddler's title.

Tobias Beer

unread,
Dec 21, 2016, 12:47:33 AM12/21/16
to TiddlyWiki
Hi Penguinlay,

If you want this to happen only after manual review of such changes / differences, it's more or less easy.

I created a demo for you here: http://foo-bar.tiddlyspot.com

If you want the updating to happen automatically based on some rules you defined, it's more complex. Not actually sure the hooks are there for it to be done, but I guess Jed's plugin works in that direction.

Best wishes,

Tobias.

Penguinlay

unread,
Dec 21, 2016, 1:26:34 AM12/21/16
to TiddlyWiki
Hi, in your demo, can I compare and make computation with the values of the fields of tiddlers within filter macro's capability?

Tobias Beer

unread,
Dec 21, 2016, 7:30:15 AM12/21/16
to TiddlyWiki
Hi Penguinlay,

Hi, in your demo, can I compare and make computation with the values of the fields of tiddlers within filter macro's capability?

You can compute with tiddler data using tobibeer/eval.

Anyhow, there is no "filter macro".
So, I would recommend you read a little more
on the general TiddlyWiki components,
e.g. "Macros in Wikitext" or "Widgets" like the "ListWidget",
and also "Filter Operators", etc... on tiddlywiki.com.

Best wishes,

Tobias.

Penguinlay

unread,
Jan 2, 2017, 12:32:53 AM1/2/17
to TiddlyWiki
Hi, Tobias. Thank you for the reply. I am still learning on how Tiddlywiki works. But, clearly, I am not understanding it well yet. I want to use it and customize it but I am scared of making mistakes at the same time.

I have experiences in C++, Python and front end web developing. So, can you suggest me the best way to study tiddlywiki with my background?

I will get to the target eventually as I learned the working of tiddlywiki. I need it for my school notes and I want to master it in one month. Is it possible? Am I aiming too high?

Tobias Beer

unread,
Jan 2, 2017, 4:02:57 PM1/2/17
to tiddl...@googlegroups.com
Hi Penguinlay, 
 
So, can you suggest me the best way to study tiddlywiki with my background?

The best way and possibly The One True Way To Learn TiddlyWiki™ is learning by doing.

In other words, you have something you wish to achieve in terms of knowledge management or presentation or data storage, etc... and so you try to model that with the componenents you're given. The basic components being tiddlers. Early on, you might meet System Tiddlers and get a glimpse at what makes TiddlyWiki tick and how to hack the very same stuff yourself.

Other than that, learn about tags (System Tags are quire relevant as well), fields, Wikitext, Widgets, Macros, Filters, plain HTML... all the little cogwheels that you can use to build an engine that propels your very own knowledge enterprise.

It's really hard to suggest a generic discovery path. I would think, the most fruitful ones are those where you have an idea and you figure out all the ways you can accomplish that, perhaps even the best way of them all, eventually. ;-)

Best wishes,

Tobias.

Dmitry Sokolov

unread,
Jan 2, 2017, 11:34:49 PM1/2/17
to TiddlyWiki
Hi Penguinlay,

welcome on board! :)
It's not just you facing this problem with getting started.
"My TiddlyWiki Journey" thread is recently started to help newcomers like ourselves.

I would appreciate us started talking, sharing ideas and experience.

I am looking forward to seeing you there. :)

Cheers,
Dmitry
Message has been deleted

Penguinlay

unread,
Jan 3, 2017, 4:26:02 AM1/3/17
to TiddlyWiki
I believe I am in the right path, then. I have been trying out for a while now. I used to learn by doing. But, I doubted myself there for a second because it had not been that fruitful. Thank to your reply, I will get back to making mistakes and learning from them with confidence. It may take more than a month as I had wished but once I master it, I believe it will be beneficial in the near future. :D

Penguinlay

unread,
Jan 3, 2017, 4:27:48 AM1/3/17
to TiddlyWiki
Nice works going on there, Dmitry! I will see you there!
Reply all
Reply to author
Forward
0 new messages