From 3e18500c38e5eff3008e025fcd2d21a351afac80 Mon Sep 17 00:00:00 2001 From: smcv Date: Sat, 11 Jun 2016 08:14:21 -0400 Subject: [PATCH] Added a comment --- ..._4426af9c9bc164b5e0a9c60cb812a445._comment | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 doc/forum/Questions_about_a_new_plugin/comment_3_4426af9c9bc164b5e0a9c60cb812a445._comment diff --git a/doc/forum/Questions_about_a_new_plugin/comment_3_4426af9c9bc164b5e0a9c60cb812a445._comment b/doc/forum/Questions_about_a_new_plugin/comment_3_4426af9c9bc164b5e0a9c60cb812a445._comment new file mode 100644 index 000000000..143ae56e2 --- /dev/null +++ b/doc/forum/Questions_about_a_new_plugin/comment_3_4426af9c9bc164b5e0a9c60cb812a445._comment @@ -0,0 +1,33 @@ +[[!comment format=mdwn + username="smcv" + subject="comment 3" + date="2016-06-11T12:14:21Z" + content=""" +> It references the relative latest page (.../sismologie and not .../sismologie/20150819), and needs to access the meta information, fields and tags. + +I think this might be the right place to \"cut the knot\": instead of indirecting +through the \"latest\" page, why not something like this? (this is pseudocode +describing a hypothetical plugin, not something you can do right now): + + # index.mdwn + [[!report pages=\"newest(sismologie/*)\" ...]] + +Or you could keep the indirection but make it explicit, without introducing +copying: + + # sismologie.mdwn + [[!inline pages=\"./*\" trail=\"yes\" sort=\"age\"]] + + # index.mdwn - assume ... is a glob that matches sismologie but not its subpages + [[!report pages=\"first-trail-member(...)\"]] + +(`first-trail-member` doesn't exist, but it could.) + +Or maybe a distinct data structure: + + # sismologie.mdwn + [[!versions pages=\"./*\"]] + + # index.mdwn - assume ... is a glob that matches sismologie but not its subpages + [[!report pages=\"version-of(...)\"]] +"""]] -- 2.39.2