Closed (fixed)
Project:
Discuss This!
Version:
5.x-1.0
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
7 Nov 2008 at 21:25 UTC
Updated:
16 Feb 2009 at 19:40 UTC
I'd like to display my "discuss this" links only on the full nodes. There doesn't seem to be a way to do that now. Maybe that option can be added down the road?
In the meantime, if someone can suggest how I might code it, I'm open to a little improvising.
Comments
Comment #1
spidermanThis is a reasonable feature to include. I'd suggest adding an option to the admin/settings/discussthis page (say, a dropdown select) so the admin can choose whether the links show up on Teaser Views, Full-node Views, or Both.
Using this variable, a slight modification to the hook_link implementation (and probably the hook_nodeapi one, too) should accomplish this feature easily.
I probably won't have time to code this in the next week or so, but if you feel confident rolling a patch, I'd happily review and commit it :)
Comment #2
aharown07 commentedI'm afraid I'm too spotty in PHP & Drupal hooks to know how to do that. Mostly I cut and paste... and sometimes guess-edit-test-repeat (very slow process)! Would if I knew how though.
Comment #3
spidermanOk I've implemented this feature, although I'm not entirely happy with the UI. I've simply added a second "conditional" dropdown to the set of node types, which disappears when the checkbox is unchecked. My CSS skills are fairly rudimentary, and I couldn't work out a nice way to display them inline, and/or with a label indicating what they were for. Patches welcome ;)
commit is here: http://drupal.org/cvs?commit=168654
Comment #4
aharown07 commentedMany thanks. Will try this out soon