Ticket #1413 (new enhancement)

Opened 2 years ago

Last modified 2 years ago

Extend timeline macro to support templating and filtering

Reported by: jdlrobson Owned by: JeremyRuston
Priority: undefined Milestone: 2.7.1
Component: core Version:
Severity: undefined Keywords:
Cc:

Description

Note this is related to #1258

It would be highly useful to be able to use the timeline macro in a similar way to the forEachTiddler macro.

Sometimes it might be useful to construct timelines for a subset of tiddlers. For example a timeline of plugins:

<<timeline filter:[tag[systemConfig]] >>

Sometimes you might want to do other things such as show the modified timestamp for each timeline element, or show the SiteIcon? / modifier name. All these sorts of use cases could be met by adding a template parameter as well.

<<timeline filter:[tag[systemConfig]] template:Foo>>

where Foo is a tiddler with the text

<<view title link>> (<<view modified date>>)

would create items with a link and the modified date in brackets.

This would be backwards compatible and would provide an easy way to generate timelines of tiddlers.

Code is currently being written with tests to meet this requirement.

Attachments

1413.diff Download (11.5 KB) - added by jdlrobson 2 years ago.
a suggested rewrite of the timeline macro with backwards compatibility tests and test for new functionality

Change History

Changed 2 years ago by jdlrobson

a suggested rewrite of the timeline macro with backwards compatibility tests and test for new functionality

Changed 2 years ago by MartinBudden

  • milestone set to 2.7.1
Note: See TracTickets for help on using tickets.