Right now if I add a blog, then add a blog archive I
just get "no blog
found" since
findBlog
^ self context structure parents reverse
detect: [ :each | each isKindOf: PBBlog ]
ifNone: [ nil ]
doesn't find the PBBlog
Right now all the blog related components (with the exception of the
block ticker), expect to be used within the context of a blog.
Otherwise they display the error message "no blog found".
I agree that this is not ideal in many cases, because it forces users
of a blog to create a new environment. Below you find a few possible
solutions, but none of them really convinces me:
- Blog related components could just hide when being displayed outside
of a blog. Maybe that's confusing too, if you add something and but
can't see it?
- Blog related components could expect you to specify a blog in their
settings. That would make everything very declarative, but would
prevent from reusing the templates on different blogs. However the
widgets could also be part of documents or displayed as a summary on
the home page. Maybe that solution isn't that bad after all?
Lukas
--
Lukas Renggli
http://www.lukas-renggli.ch