| 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. |
| 7 |
|
| 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): |
| 11 |
|
| 12 |
# index.mdwn |
| 13 |
[[!report pages=\"newest(sismologie/*)\" ...]] |
| 14 |
|
| 15 |
Or you could keep the indirection but make it explicit, without introducing |
| 16 |
copying: |
| 17 |
|
| 18 |
# sismologie.mdwn |
| 19 |
[[!inline pages=\"./*\" trail=\"yes\" sort=\"age\"]] |
| 20 |
|
| 21 |
# index.mdwn - assume ... is a glob that matches sismologie but not its subpages |
| 22 |
[[!report pages=\"first-trail-member(...)\"]] |
| 23 |
|
| 24 |
(`first-trail-member` doesn't exist, but it could.) |
| 25 |
|
| 26 |
Or maybe a distinct data structure: |
| 27 |
|
| 28 |
# sismologie.mdwn |
| 29 |
[[!versions pages=\"./*\"]] |
| 30 |
|
| 31 |
# index.mdwn - assume ... is a glob that matches sismologie but not its subpages |
| 32 |
[[!report pages=\"version-of(...)\"]] |
| 33 |
"""]] |