Closed Bug 775527 Opened 12 years ago Closed 11 years ago
Script - Need a way to get a subpage list
We need support for building a tree of subpages of a page. We use this to automatically build many landing pages. See http://developer.mindtouch.com/en/docs/DekiScript/Reference/Wiki_Functions_and_Variables/Wiki.Tree for the command we use on MindTouch to do this.
Off the top of my head: We need support in Kuma to assemble a list of child pages for a page. There could be some performance concerns to keep in mind, though: Some subpage trees are HUGE - ie. 100's to 1000's of subpages on just one level, to say nothing of what recursive descent would dredge up. Rather than simply adding subpage lists to env vars or the $json view on pages, I think we'll need a special-purpose JSON view in the wiki just for querying the tree for a given page. Support the depth parameter. Making it a special-purpose view will help make sure a tree only gets queried and assembled when we really want it. That is, not on every page view.
(Oh yeah, and when we have this data available as a JSON resource in Kuma, we can then fetch it from KumaScript and wrap that process in a convenience method in an auto-required module.)
Moved out of this release as per our discussions in the planning meeting last week.
No longer blocks: 773295
Component: Website → Landing pages
Component: Landing pages → Editing
Whiteboard: s=2012-10-30 u=user → s=2012-10-30 u=user c=Editing
Whiteboard: s=2012-10-30 u=user c=Editing → u=user c=Editing
Doing a little bug reorganization here. This bug is superseded by bug 810019, which we are working on now.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → DUPLICATE
Product: developer.mozilla.org → developer.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.