aboutsummaryrefslogtreecommitdiff
path: root/doc/forum/Questions_about_a_new_plugin
diff options
context:
space:
mode:
authorsmcv <smcv@web>2016-06-11 08:14:21 -0400
committeradmin <admin@branchable.com>2016-06-11 08:14:21 -0400
commit3e18500c38e5eff3008e025fcd2d21a351afac80 (patch)
tree95b59e8fd54e969234c02a73de40b216708e7e38 /doc/forum/Questions_about_a_new_plugin
parent0cc9af205dea43afebc717b4d62f5c7e90d3f325 (diff)
downloadikiwiki-3e18500c38e5eff3008e025fcd2d21a351afac80.tar
ikiwiki-3e18500c38e5eff3008e025fcd2d21a351afac80.tar.gz
Added a comment
Diffstat (limited to 'doc/forum/Questions_about_a_new_plugin')
-rw-r--r--doc/forum/Questions_about_a_new_plugin/comment_3_4426af9c9bc164b5e0a9c60cb812a445._comment33
1 files changed, 33 insertions, 0 deletions
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(...)\"]]
+"""]]