]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blob - doc/forum/Questions_about_a_new_plugin/comment_3_4426af9c9bc164b5e0a9c60cb812a445._comment
no time to do maser for now, but some pointers and thanks
[git.ikiwiki.info.git] / doc / forum / Questions_about_a_new_plugin / comment_3_4426af9c9bc164b5e0a9c60cb812a445._comment
1 [[!comment format=mdwn
2  username="smcv"
3  subject="comment 3"
4  date="2016-06-11T12:14:21Z"
5  content="""
6 > It references the relative latest page (.../sismologie and not .../sismologie/20150819), and needs to access the meta information, fields and tags.
8 I think this might be the right place to \"cut the knot\": instead of indirecting
9 through the \"latest\" page, why not something like this? (this is pseudocode
10 describing a hypothetical plugin, not something you can do right now):
12     # index.mdwn
13     [[!report pages=\"newest(sismologie/*)\" ...]]
15 Or you could keep the indirection but make it explicit, without introducing
16 copying:
18     # sismologie.mdwn
19     [[!inline pages=\"./*\" trail=\"yes\" sort=\"age\"]]
21     # index.mdwn - assume ... is a glob that matches sismologie but not its subpages
22     [[!report pages=\"first-trail-member(...)\"]]
24 (`first-trail-member` doesn't exist, but it could.)
26 Or maybe a distinct data structure:
28     # sismologie.mdwn
29     [[!versions pages=\"./*\"]]
31     # index.mdwn - assume ... is a glob that matches sismologie but not its subpages
32     [[!report pages=\"version-of(...)\"]]
33 """]]