[Zope-CMF] Actions and navbar items.

John Morton jwm@plain.co.nz
Wed, 23 Jan 2002 12:01:34 +1300


On Wednesday 23 January 2002 01:18, Tres Seaver wrote:
> John Morton wrote:
> > Is there any particular reason that various items in navbar at the top of
> > each page (home, members, search et al) are in the main template rather
> > than each being actions in the action tool?
> >
> > Is it just the case that no one has got around to making the change or is
> > there a good reason not to treat the action tool as a general navigation
> > bar/tool bar builder?
>
> Until we added the ability to specify actions via tool configuration (post-
> CMF 1.2, that is), there was no way to change what actions would be
> produced, short of replacing tools. 

Ah. I just switched back to using CMF 1.2 before going into production and I 
see that the ZMI action config dialogs have vanished :-)

> The "navbar" links have felt to me
> somewhat as though they were in the domain of the designer, as well, and so
> I didn't think too hard about it when Andrew was working on the
> through-the-web actions.

Fair enough. I'm inclined to think that the layout of action boxes and nav 
bars are definitely in the designer's domain, but it's better to treat the 
items as being dynamic to ease growing pains as a site expands.

> I think, now that you mention it, that this would be a fine use of the
> feature. We could change the skin to display actions of a new category
> (e.g., 'navbar') there, and then create the actions on the 'portal_actions'
> tool.  Note that you are free to do this in your own sites right now,
> assuming that you are running from the head checkout in CVS, rather than
> 1.2.

Cool. The portal_actions tool could use a few user interface refinements to 
make this work well for many actions, though. If I get the time I might code 
something up. 

John