Closed Bug 775527 Opened 12 years ago Closed 12 years ago

Kuma: KumaScript - Need a way to get a subpage list

Categories

(developer.mozilla.org Graveyard :: Editing, defect, P1)

defect

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 810019

People

(Reporter: sheppy, Unassigned)

References

Details

(Whiteboard: u=user c=Editing)

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.)
Blocks: 773295
Blocks: 773304
Moved out of this release as per our discussions in the planning meeting last week.
No longer blocks: 773295
Priority: -- → P1
Version: Kuma → unspecified
Component: Website → Landing pages
Whiteboard: s=2012-10-30
Whiteboard: s=2012-10-30 → s=2012-10-30 p=
Whiteboard: s=2012-10-30 p= → s=2012-10-30 u=user
Priority: P1 → P2
Component: Landing pages → Editing
Whiteboard: s=2012-10-30 u=user → s=2012-10-30 u=user c=Editing
Priority: P2 → P1
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: 12 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.