Trastabuga wrote:

> 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))

helps.


> 2) If I want to hide the admin page from the public (after all, only
> admins should know it exists) so that it's not displayed on the
> navigation menu, how can I achieve that?

Initialize the navigation conditionally. Sketch:

(apply #'make-navigation "main nav"
                         (append
                           (list "public" "public widget")
                           (when (adminp (the-user))
                             (list "admin" "admin widget"))))

There are other ways to do this, but this is the one that is
most generally applicable.

  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.

Reply via email to