Closed (fixed)
Project:
Activity
Version:
6.x-2.x-dev
Component:
User interface
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
29 Mar 2010 at 16:42 UTC
Updated:
10 May 2010 at 17:20 UTC
i have a situation, where I want commenting enabled except for on one content type.
Ive enabled activity comments in my activity view, and get the comment form under all items.
However I need it gone or hidden for content type 1. but there for all other content types. I.e hidden when a user creates/updates a page, but there when a user creates/updates a story or blog etc.
Is this possible? How do i do this?
Thank you
Comments
Comment #1
Scott Reynolds commentedProbably only attainable via theming of the Field.
You can look into form alerting it as well.
Comment #2
pribeh commentedFollow the example in comment #12 of this thread http://drupal.org/node/602896 if you need more help.
Comment #3
Saeh commentedthanks, that post helps.
How do I filter activity template though, is there an id or something, where do i get it from
Comment #4
Scott Reynolds commentedhmm actually i would do this
Comment #5
pribeh commentedI presume that's more efficient than theming (hiding) the comments. I've just been displaying comments for only statuses, and not nodes, by using the following in the view-row.tpl:
I'll test the custom mod now.
Comment #6
Scott Reynolds commentedIt won't speed up your site :-D, but yes. It avoids calling theme('form_element_type1') ... theme('last_form_element_type') and doing all that work.
Its cleaner as it doesn't require an extra .tpl.php. Template files are slow comparison.
Comment #7
Scott Reynolds commentedMarking as fixed. Reopen if it doesn't work.