[schooltool-dev] Introducing order to the help tree
Jean-François Roche
jfroche at pyxel.be
Thu Jul 26 06:01:16 EDT 2007
The tree.py in zope.app.onlinehelp.browser (which is in charge of
building this tree) is calling for getSubTopics (which is define in
zope.app.onlinehelp.onlinehelptopic ). This getSubTopics method has no
sort method.
Question is now wether a sort method should be added in the BrowserView
( zope.app.onlinehelp.browser.tree) after each call to getSubTopics or
should be added inside the onlinehelptopic.getSubTopics method ?
We can sort this based on the ID (that you set in the zcml).
We shouldn't sort that in JS 'cause LI are already in place and JS is
just looping throught the LI within a UL. We should sort this earlier.
Jeff
Tom Hoffman a écrit :
> In the default Zope 3 help system tree view, children are unordered,
> which makes things confusing. Probably the right answer is to change
> the help ZCML directive to allow ordering information to be added. An
> easier and hackier approach would be to just get the view to do
> alphabetical sorting on children, and to append letters or numbers to
> the titles of things you want in a sequence (1. Daily Calendar, 2.
> Weekly Calendar, etc.).
>
> I think this could probably be done by just changing the tree
> javascript (zope/app/onlinehelp/browser/tree.js) I'm not sure what
> the most sane way to override this kind of thing is, though.
>
> Advice?
>
> --Tom
> _______________________________________________
> Schooltool-dev mailing list
> Schooltool-dev at schooltool.org
> http://lists.schooltool.org/mailman/listinfo/schooltool-dev
>
More information about the Schooltool-dev
mailing list