[Zope-PTK] DISCUSS: Creating news and the portal box

Paul Everitt paul@digicool.com
Thu, 13 Jan 2000 10:53:12 -0500


Mike Pelletier wrote:
>     I have a problem with the memberbox at the moment.  I would like
> objects to be able to dynamically add items to the menu.  The problem is
> that the memberbox evaluates before the content.  If I want to pass things
> to the memberbox, they have to be set up at the beginning of the
> request.  This is hard.  I want to be able to do this...
> 
> <dtml-call "addPortalBoxItem('View comments', absolute_url() + '/comments')">

There's a better way, grasshopper.  Do it like the menu box does it! 
Have the Member Box pull the additional menu items by looking for
something magic in the current item.

It's a shame, this is exactly the same kind of protocol that Martijn
needs for RDF support, to give objects context (right-click) menus in
Mozilla.

>     ...and have the option show up in the PortalBox for this request.  To
> do this, memberbox would have to be moved to the standard_html_footer.  Is
> this possible?  I've seen you do some pretty clever things with CSS
> placement, but I don't know whether it's safe to do so or not.

I think the Mem^H^H^HPortal Box should be a separate template called
from std header.

> > 4) What other idioms could be expressed?  For instance, we've gone back
> > and forth on having an Outlook-style box that had icons linked to
> > "Documents", "Images", "News", "Links", etc.
> 
>     Zope Instant Messenger.  I tell you, this is going to be the next big
> buzzword source!  And 'ZIM' is pretty cool.  ;-)

:^)

--Paul