List Info

Thread: Site-wide, permanent disablement of 'Allow Discussion on this item'




Site-wide, permanent disablement of 'Allow Discussion on this item'
user name
2006-04-28 10:09:52
I recently asked the same thing, see here:
http://article.gmane.org/gmane.comp.web.zope.plone.s
etup/728

"Mat Ridley" <mjr66cam.ac.uk> wrote in 
message news:445090E5.8030001cam.ac.uk...
>
> Ha! Thanks for the clues.
>
> What I needed to do was to customise edit_macros, and
change
>
>  <tal:fields repeat="field python:
schematas[fieldset].fields()">
>          <metal:fieldMacro use-macro="python:
>  here.widget(field.getName(),
mode='edit')"/>
>   </tal:fields>
>
> as Anne suggested, to
>
>  <tal:fields repeat="field python:
schematas[fieldset].fields()">
>          <metal:fieldMacro use-macro="python:
>  here.widget(field.getName(),
mode='edit')"/>
>             <span tal:condition="python: 
> field.getName()!='allowDiscussion'">
>              <metal:fieldMacro 
> use-macro="python:here.widget(field.getName(),
mode='edit')" />
>             </span>
>   </tal:fields>
>
> Works like a charm!
>
> Thanks again,
>
> Mat
>
>
> Mat Ridley
> IT Officer
> Cambridge Theological Federation
>
> Anne Bowtell wrote:
>> Its possible base_metadata.cpt is what you want (I
haven't tried though). 
>> You'd need to set a condition to test for the
field allowDiscussion 
>> inside this block, so it doesn't call the macro
for that field:
>>
>> <tal:fields repeat="field python:
schematas[fieldset].fields()">
>>         <metal:fieldMacro
use-macro="python: here.widget(field.getName(), 
>> mode='edit')"/>
>>  </tal:fields>
>>
>> Anne
>>
>>
>> Andy Koch wrote:
>>> Mat Ridley wrote:
>>>
>>>>
>>>> Maybe it's bad form to reply to your own
plea for help, but I've made a 
>>>> bit more progress with this.
>>>>
>>>> I've found out now that I can stop users
from adding comments around 
>>>> the site by setting the portal root's
security property "reply to item" 
>>>> to blank. That gets me about 95% of the way
to where I want to get...
>>>>
>>>> ... but the thing that's still bugging me
is how to remove the "Allow 
>>>> Discussion of this item" part of an
item's create/edit form. My site 
>>>> will now ignore whatever it is set to, but
I'd still really like to 
>>>> remove its tantalising beckon from my end
users' consciousness...
>>>>
>>>> Any clues?
>>>>
>>>> Mat
>>>>
>>>>
>>>> Mat Ridley
>>>> IT Officer
>>>> Cambridge Theological Federation
>>>>
>>>> Mat Ridley wrote:
>>>>
>>>>>
>>>>> Hello again,
>>>>>
>>>>> In a further effort to control the mess
my Plone site will probably 
>>>>> spiral towards if left at the mercy of
my userbase, I would like to 
>>>>> make sure that Discussions of items on
the site is impossible.
>>>>>
>>>>> Even though I have unticked
"Allow Discussion" under all my 
>>>>> portal_types, whenever I make (for
example) a new document, the option 
>>>>> is given to allow me to "Allow
Discussion on this item", with the 
>>>>> radio buttons that allows me to
override the default.
>>>>>
>>>>> What I'd like to do is to remove those
radio buttons from the form 
>>>>> altogether, but I'm dashed if I can
find where they're summoned from. 
>>>>> From portal_types, it looks like most
Plone items are edited via 
>>>>> atct_form, but when I tracked that
down, its contents are just -
>>>>>
>>>>> <metal:main
metal:use-macro="here/base_edit/macros/master"
/>
>>>>>
>>>>> Following the trail to base_edit, I can
see a huge gob of macros at 
>>>>> the top of it, and that's where I'm
out of my depth. I can't see 
>>>>> anything obvious there that I can tweak
or try to comment out... can 
>>>>> anyone give me any ideas how I can
really, truly, stop people from 
>>>>> being able to pepper my site with
comments?
>>>>>
>>>>> Thanks as always!
>>>>>
>>>>> Mat
>>>>>
>>>>>
>>>>> Mat Ridley
>>>>> IT Officer
>>>>> Cambridge Theological Federation
>>>>>
>>>>>
>>>>>
-------------------------------------------------------
>>>>> Using Tomcat but need to do more? Need
to support web services, 
>>>>> security?
>>>>> Get stuff done quickly with
pre-integrated technology to make your job 
>>>>> easier
>>>>> Download IBM WebSphere Application
Server v.1.0.1 based on Apache 
>>>>> Geronimo
>>>>> http://sel.as-us.falkag.net/
sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>>>>>
_______________________________________________
>>>>> Plone-Users mailing list
>>>>> Plone-Userslists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/plone-users

>>>>
>>>>
>>>>
>>>>
-------------------------------------------------------
>>>> Using Tomcat but need to do more? Need to
support web services, 
>>>> security?
>>>> Get stuff done quickly with pre-integrated
technology to make your job 
>>>> easier
>>>> Download IBM WebSphere Application Server
v.1.0.1 based on Apache 
>>>> Geronimo
>>>> http://sel.as-us.falkag.net/
sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>>>
>>>
>>>
>>> you might try customizing the template, perhaps
atct_edit or base_edit
>>>
>>> just stabbing in the dark though
>>>
>>>
>>>
>>>
-------------------------------------------------------
>>> Using Tomcat but need to do more? Need to
support web services, 
>>> security?
>>> Get stuff done quickly with pre-integrated
technology to make your job 
>>> easier
>>> Download IBM WebSphere Application Server
v.1.0.1 based on Apache 
>>> Geronimo
>>> http://sel.as-us.falkag.net/
sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>>
>>
>>
>>
-------------------------------------------------------
>> Using Tomcat but need to do more? Need to support
web services, security?
>> Get stuff done quickly with pre-integrated
technology to make your job 
>> easier
>> Download IBM WebSphere Application Server v.1.0.1
based on Apache 
>> Geronimo
>> http://sel.as-us.falkag.net/
sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>> _______________________________________________
>> Plone-Users mailing list
>> Plone-Userslists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/plone-users

>
>
> -------------------------------------------------------
> Using Tomcat but need to do more? Need to support web
services, security?
> Get stuff done quickly with pre-integrated technology
to make your job 
> easier
> Download IBM WebSphere Application Server v.1.0.1 based
on Apache Geronimo
> http://sel.as-us.falkag.net/
sel?cmd=lnk&kid=120709&bid=263057&dat=121642






-------------------------------------------------------
Using Tomcat but need to do more? Need to support web
services, security?
Get stuff done quickly with pre-integrated technology to
make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on
Apache Geronimo
http://sel.as-us.falkag.net/
sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Plone-Users mailing list
Plone-Userslists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plone-users

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )