On Apr 1, 3:56 am, "Leslie P. Polzer" <[email protected]>
wrote:
> 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))
     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.
>
> 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"))))
>
For now I'd like to stay away from the login widget. I need something
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.
Are there any code samples for more advanced sites which have this
kind of snippets?
> 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