[Zope-CMF] Another one about Portal_types and Actions
Ausum Studio
ausum_studio@hotmail.com
Wed, 4 Sep 2002 20:09:22 -0500
The default CMF is bundled with a method called "actions_box", found at both
the "generic" and "zpt_generic" skin folder, being the latter the default
(used by the basic skin). There resides all the stuff you are wanting to
hide to your regular users.It's visible by default.
All you have to do is to modify it, making visible only the commands you
want, under the condition that the current user has the roles you've had
previously set and determined.
As that doesn't restrict them to still use those hidden methods, you'll need
to modify the security settings too.
Ausum
----- Original Message -----
From: "Hariharan Gopalan" <hari@sapta.com>
To: <zope-cmf@zope.org>
Sent: Wednesday, September 04, 2002 4:14 PM
Subject: [Zope-CMF] Another one about Portal_types and Actions
> Hi Dieter and Ausum,
>
> dont want to consume too much bandwidth here, you are all so wonderful,
but
> want to strike a balance between struggling myself and asking here, but I
> can assure that whatever I am receiving will come back many folds, as I
just
> love this and am determined to achieve ZEN.
>
> How can I override an action of a folder like edit / publish etc.
>
> I created a factory-based type Information, here is what I am attempting
to
> do:
>
> 1. Remove the option of editor view / ordinary view in the navigation box,
> and make the default as the ordinary view for all users except the
manager.
>
> 2. Remove all the tabs in the ordinary view like view , local roles,
> properties and publishing.
>
> Am sure there must be a simple way to do this so any Zens want to put in a
> few words!! :)
>
> TIA
> Hari
>
>
>
>
>
> _______________________________________________
> Zope-CMF maillist - Zope-CMF@zope.org
> http://lists.zope.org/mailman/listinfo/zope-cmf
>
> See http://collector.zope.org/CMF for bug reports and feature requests
>