[TW5] A macro to display a list in multiple columns.

130 views
Skip to first unread message

Jed Carty

unread,
Feb 8, 2016, 11:39:01 AM2/8/16
to TiddlyWiki
I needed this for the grades I am making to the resume edition and I thought I would share it here. It is a simple macro that lets lists the output of a filter in multiple columns.

You use it like this:

<<multicolumnlist "[tag[foo]]' 4>>

and it will list tiddlers tagged with `foo` split into 4 columns. It is filled row-by-row and I haven't added styling options yet because I just realized I should do that as I am typing this. So later today there will probably be styling options.

Here is the macro stuff on my site: http://inmysocks.tiddlyspot.com/#Multi-column%20List

Ton Gerner

unread,
Feb 8, 2016, 12:22:19 PM2/8/16
to TiddlyWiki
Hi Jed,

Handy macro.

Thanks for sharing,

Ton

Tobias Beer

unread,
Feb 13, 2016, 2:53:48 AM2/13/16
to TiddlyWiki
Hi Jed,

Thanks for sharing! Works as designed. I am mildly concerned about performance (At some point). After all, you're running the entire filter at least about as often as there are rows. In this case, I imagine a widget to be the better choice, so as to only filter once and then create the presentation in js. This would also give mildly more flexibility as to what that presentation is supposed to be. Could be tables, could be actual columns, could be divs.

Best wishes,

Tobias.
Reply all
Reply to author
Forward
0 new messages