[Product-Developers] how to disable "Sharing" tab?

Arno Blumer arnoblumer at gmail.com
Tue Mar 16 15:41:17 UTC 2010


The object tag:
<object name="local_roles" meta_type="CMF Action" i18n:domain="plone">

On Tue, Mar 16, 2010 at 1:55 PM, leejason <m at leejason.com> wrote:

>
> Is there any way to disable "Sharing" tab? I've tried to set
> "visible=False"
> in the profiles XML, say MyContentType.xml, as below:
>
>  <action title="Share1" action_id="sharing" category="object"
> condition_expr=""
>    url_expr="string:${object_url}/nowhere" visible="False">
>  <permission value="Modify portal content"/>
>  </action>
>
>  <action title="Share2" action_id="@@sharing" category="object"
> condition_expr=""
>    url_expr="string:${object_url}/nowhere" visible="False">
>  <permission value="Modify portal content"/>
>  </action>
>
> But neither of these works. If I set "visible=False" for the following, it
> works, though.
>
>  <action title="View" action_id="view" category="object" condition_expr=""
>    url_expr="string:${object_url}" visible="True">
>  <permission value="View"/>
>  </action>
>  <action title="Edit" action_id="edit" category="object" condition_expr=""
>    url_expr="string:${object_url}/edit" visible="False">
>  <permission value="Modify portal content"/>
>  </action>
>
> BTW, the reason why I'd need this is because I'm developing a site to share
> "tangible" things. I'd design a "share" function by myself and the default
> "Sharing" tab in Plone would be misleading for my users.
>
> Thanks for any suggestion in advance, as I've burned several hours in vain.
>
>
> --
> View this message in context:
> http://n2.nabble.com/how-to-disable-Sharing-tab-tp4743368p4743368.html
> Sent from the Product Developers mailing list archive at Nabble.com.
>
> _______________________________________________
> Product-Developers mailing list
> Product-Developers at lists.plone.org
> http://lists.plone.org/mailman/listinfo/product-developers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.plone.org/pipermail/plone-product-developers/attachments/20100316/4dae8ef1/attachment.html>


More information about the Product-Developers mailing list