> > > 1) Is there a way to notify the blog-widget (or make it dirty) after > > > the admin adds new posts so that when you go to the main page your new > > > posts appear? > > > I'm not sure how the blog app collects posts. Check if > > > (mark-dirty (root-composite))
The blog-widget creates a set of composite children in its initialize- instance's :after method. These children are created in reset-blog (blog.lisp). In other words, the blog-widget[1] does not check for all blog posts and render them on refresh. If you want to do that, inserting (reset- blog widget) in its render-method will cause it to reread all blog posts and create composites at every refresh (non-performant, but it's no biggie). > Any suggestion where I may call this function from? I mean, there > must by some event handler when a user clicks those Add/Delete > buttons. dataedit-on-add-item is one such place, on-delete is another. Are you using slime/emacs? Try M-. (alt-period) at the repl. When a gridedit (which inherits from dataedit-mixin) adds and delete items, it calls these fns. > like a link to yoursite.com/admin being outside of the scope of the > Navigation control. Something like stand along dispatcher. > Later, I will add the login scenario only to that admin page which > again won't be part of the regular user experience. Yes, a stand-alone dispatcher should address this case best. It is also quite easy to make a simple do-dialog that checks a hard-coded password. Here's the code I used: http://paste.lisp.org/+230R [1] as currently written. -- 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.
