gerdami wrote on 05 Mar 2010 11:20
It would be great if ListPages could list not only the direct children but also all descendants.
Example: a generated vineyard by pagepath gives from category vineyard:
France > Bordeaux
France > Bordeaux > Medoc > Pauillac
France > Bordeaux > Medoc > Margaux
where Medoc is a child of Bordeaux and Pauillac is a child of Medoc
Ch. Latour is Pauillac then is a child of Pauillac but a grandchild of Bordeaux, of category wine: (, or tagged with _wine)
Ch. Petit Bordeaux is a basic wine of Bordeaux, of category wine: (, or tagged with _wine)
If I currently ListPages all wines whose parent is Bordeaux, it will not retrieve Ch. Latour whose parent is Pauillac.
Indeed, I would like to ListPages ALL wines which have Bordeaux as parent or grandparent or gran(n)parent.
Understood Leiger ? ;-)
Yes, that makes sense :)
I have a feeling I remember something like a ListChildren module being mentioned a long time ago. Maybe I'm just imagining it, as Wikidot can't make ListAnythingYouWant modules! ;-)
How would this be added to ListPages? Just a %%children%% is equivalent to %%children{1}%%, for example?
~ Leiger - Wikidot Community Admin - Volunteer
Wikidot: Official Documentation | Wikidot Discord server | NEW: Wikiroo, backup tool (in development)
That sounds like a replacement of current PageTree.
No. It's not about %%children%%.
But about pages, and current variables %%name%%, %%fullname%% would be enough.
Indeed, it is located at the selector process, with something like grandparent="Bordeaux"
or parent{1}="Bordeaux, Bourgogne"
or parent{1-4}="Bordeaux, Bourgogne"
or parent{1-n}="Bordeaux, Bourgogne"
gerdami - Visit Handbook en Français - Rate this howto:import-simple-excel-tables-into-wikidot up!
Makes sense.
~ Leiger - Wikidot Community Admin - Volunteer
Wikidot: Official Documentation | Wikidot Discord server | NEW: Wikiroo, backup tool (in development)