On Apr 1, 8:42 am, netawater <[email protected]> wrote: > > > 2. I define a widget wiki-widget to host all pages of wiki, code like > > > this: > > > ... > > > (setf (composite-widgets (pages wiki-widget)) > > > (mapcar > > > (lambda (page) > > > (wiki-make-page-widget wiki-widget page)) > > > (all-pages)))
You should use a dispatcher/selector to implement this. Abusing a composite as navigation will bring you nothing but grief, widgets not updating and bad performance. In the blog example a composite is appropriate: all posts should be shown at the main page (well usually only the latest ones, but it's just a simple example). But this is not the case for a Wiki: the current page should be determined from the URI in the dispatching phase. You will have to get familiar with the dispatching concept of Weblocks. Check out src/widgets/on-demand-selector.lisp to learn about a Wiki-/REST-style selector. Leslie --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "weblocks" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/weblocks?hl=en -~----------~----~----~----~------~----~------~--~---
