Close comments

Author Message

Jérôme Vieilledent

Tuesday 29 July 2008 5:07:00 am

Hello,

I would like to know if there is a simple way to close comments on eZPublish. I guess that it is possible via a user policy, but is there another method ?

Thanks

Łukasz Serwatka

Tuesday 29 July 2008 6:25:06 am

You may add checkbox to parent content object which disable/hide comment button. Take a look on ezwebin article.tpl.

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Jérôme Vieilledent

Tuesday 29 July 2008 6:39:33 am

Thanks Lukasz

But just adding a checkbox can't effectively disable the content creation, can it ? You can hide the button but the feature isn't "protected" from spamming for example. Maybe would it be possible by affecting the subtree to another section ?

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 21:16:42
Script start
Timing: Jan 18 2025 21:16:42
Module start 'layout'
Timing: Jan 18 2025 21:16:42
Module start 'content'
Timing: Jan 18 2025 21:16:43
Module end 'content'
Timing: Jan 18 2025 21:16:43
Script end

Main resources:

Total runtime0.9916 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0063 587.7891152.6094
Module start 'layout' 0.00630.0028 740.398439.4297
Module start 'content' 0.00910.9811 779.8281545.8359
Module end 'content' 0.99020.0014 1,325.664112.1953
Script end 0.9915  1,337.8594 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.3182160.0002
Check MTime0.00130.1264160.0001
Mysql Total
Database connection0.00090.088410.0009
Mysqli_queries0.942995.0933570.0165
Looping result0.00050.0528550.0000
Template Total0.962297.020.4811
Template load0.00190.196020.0010
Template processing0.960396.841920.4801
Template load and register function0.00010.010710.0001
states
state_id_array0.00170.168210.0017
state_identifier_array0.00180.180320.0009
Override
Cache load0.00160.1630140.0001
Sytem overhead
Fetch class attribute can translate value0.00060.059320.0003
Fetch class attribute name0.00090.093050.0002
XML
Image XML parsing0.00120.118220.0006
class_abstraction
Instantiating content class attribute0.00000.001160.0000
General
dbfile0.00110.1074250.0000
String conversion0.00000.000940.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 11
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs