]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blob - doc/forum/Questions_about_a_new_plugin/comment_2_d9787194e5b1420f2400da8e023ed228._comment
Added a comment: More information
[git.ikiwiki.info.git] / doc / forum / Questions_about_a_new_plugin / comment_2_d9787194e5b1420f2400da8e023ed228._comment
1 [[!comment format=mdwn
2  username="spalax"
3  subject="More information"
4  date="2016-06-10T18:58:08Z"
5  content="""
6 >    [[!if test=\"doc/* and created_after(.)\" all=\"no\"
7 >      then=\"\"\"[[!template id=\"note\" text=\"[Newer versions are available|doc]\"]]\"\"\"]]
9 I like that!
11 > Why not ask us about your real use-case, in case it turns out that it doesn't match exactly after putting more thought into it? :-)
13 Good point: I explained what I wanted; I did not explain why.
16 The reason I want the metadata, fields and tags to be copied from the last subpage to the main page is to inline them.
18 On my professional website (I am a math teacher), I have [a page list](http://paternault.fr/pedago) where I list some activities I do in class. For instance, [I describe here](http://paternault.fr/pedago/sismologie/20150110) how I got my students to learn statistics by debunking a psychic's claim. However, I greatly improved this the following year, and published a [new version of the same article](http://paternault.fr/pedago/sismologie/20150819/).
20 So far I have three pages: ``.../sismologie/20150110`` and ``.../sismologie/20150819`` (the *actual* articles), and ``.../sismologie/`` (which should reflect the latest article). I want:
22 - both articles to be available;
23 - only the latest one to be visible on the [page list](http://paternault.fr/pedago) (not to highlight outdated articles).
25 The [page list](http://paternault.fr/pedago) is generated using [the report directive](https://framagit.org/lpaternault/www/blob/bbe26353eda6a6c95c207fb635134765e70ac637/www/pedago.mdwn#L51-55) (from the [[report plugin|plugins/contrib/report]]). It references the relative latest page (``.../sismologie`` and not ``.../sismologie/20150819``), and needs to access the meta information, fields and tags.
27 Right now, what I do is [copying \"by hand\"](https://framagit.org/lpaternault/www/blob/bbe26353eda6a6c95c207fb635134765e70ac637/www/pedago/sismologie.mdwn#L1-9) the [meta information of the latest article](https://framagit.org/lpaternault/www/blob/bbe26353eda6a6c95c207fb635134765e70ac637/www/pedago/sismologie/20150819.mdwn#L1-4), which can be error prone, and is tedious to keep up to date. I am thinking about the page version plugin I described earlier not to repeat myself.
29 Sorry for the long post… I hope it is clear enough…
31 [[Louis|spalax]]
33 """]]