RANDOM Tiddlers on startup? - Done? - Possible?

716 views
Skip to first unread message

prog...@assays.tv

unread,
May 16, 2016, 11:01:46 AM5/16/16
to TiddlyWiki
Ciao all

I looked around for a plugin that would enable that every time a user opens a Tiddlywiki page they will be presented with "X" random open tiddlers (tagged "xyz").

Is there one?

The core idea being to present FRESH content on every visit.

Any tips appreciated
Josiah

Matthew Lauber

unread,
May 16, 2016, 11:37:49 AM5/16/16
to tiddl...@googlegroups.com
AFAIK, there isn't a random filter in TiddlyWiki.  I ended up writing up a new one that you can install from http://mklauber.github.io/tw5-plugins/ . It actually shuffles the contents of a list on the basis of the hash of a string, so if you tag[Tag]shuffle[one] the list is the same order any other time you call tag[Tag]shuffle[one] but different from tag[Tag]shuffle[two].  I combined that with a button that set a field to the <<now>> macro to get random shuffles every time the button is pressed, but you may be able to remove the button with something like tag[Tag]shuffle<now>.

Jed Carty

unread,
May 16, 2016, 11:59:15 AM5/16/16
to TiddlyWiki
This is possible, there is a random list plugin somewhere, hopefully I will find the link when I get home. The opening on startup part would also take a plugin. I made a startup actions plug-in you could use to set the story list on startup. http://ooktech.com/jed/ExampleWikis/StartupActions/

prog...@assays.tv

unread,
May 16, 2016, 12:37:29 PM5/16/16
to TiddlyWiki
Ciao Jed & Matthew

Thanks for the quick responses. It tells me you really grasp the issue.

One of the fundamental things in TW is it can hold a lot of data fragments. And its small chunks of text I want to serve to an audience. NOT structured stuff.

ANYTHING that can make it easier to serve a changing set of small texts that keeps freshness will help me make a one-pager work online.

I am NOT a programmer so I may need more help.

I will look at your solutions & come back.

J.

mondayrobot

unread,
May 20, 2016, 10:52:57 AM5/20/16
to TiddlyWiki
Hello Josiah,

A little late, but I just wanted to tell you I have something similar, with the difference that I wanted a list of random titles shown in one tiddler. The idea was to create random connections and generate ideas when opening the wiki.

I used one of the many great plugins made by Tobias Beer : http://tobibeer.github.io/tw5-plugins/#random and I added this to my opening tiddler : <<list-links filter:"[!is[system]random[3]sort[title]]">> .

For what you want :
- Get the plugin from Tobias' page
- Put this filter in your Default Tiddlers section from the Control Panel : [tag[xyz]random[3]sort[title]]

This should give you 3 random tiddlers tagged xyz and sorted by title when you open your file. Of course, you should play with the filter to adapt it to what you want (more tiddlers, different order etc).

prog...@assays.tv

unread,
May 20, 2016, 11:05:52 AM5/20/16
to TiddlyWiki
GREAT! That looks like exactly what I need. I will try it now. Thanks!

Matthew Lauber

unread,
May 20, 2016, 11:46:33 AM5/20/16
to TiddlyWiki
Cool, didn't realize you could put a filter in the default tiddlers section.

prog...@assays.tv

unread,
May 20, 2016, 11:55:06 AM5/20/16
to TiddlyWiki
It works! Hat's off to mondayrobot for telling us & Tobias Beer for making it.
Reply all
Reply to author
Forward
0 new messages