By bighead03 on
hi
I would like to put the comments box as a block on the left sidebar instead of content area, how could it be done? Appreciate if you could shed me some ligth on this one
More about this, what I would like to do is, depending on the node ID, show the relevant content on the block on sidebar, i've searched through the internet but i can't find any reliable way to do this, hoping for someone who can give me a helping hand on this
Comments
It's hacky, for sure...
This isn't the complete answer, but it's a start. The easy way to display the comment content outside of the main content area is to use the comment_render function, which is what Drupal uses by default to create comment lists anyway. There's an example of how to use it on api.drupal.org here.
Of course, this doesn't remove the comments from the bottom of the story. The "hacky, don't do this unless you're desperate" method would be to use CSS to hide the comments on the bottom of the content. It should have it's own id to target.
Other than hacking core, that's the best solution I've got for Drupal 5. Any other takers?
IIRC, i think
IIRC, i think http://drupal.org/project/panels can do this... i could swear I saw a screencast of exactly this (moving the comment form), but I can't locate it atm... if i find the link i'll post it...
EDIT: it wasn't a screencast, it was a handbook page: http://drupal.org/node/206185
===
"Give a man a fish and you feed him for a day.
Teach a man to fish and you feed him for a lifetime." -- Lao Tzu
"God helps those who help themselves." -- Benjamin Franklin
"Search is your best friend." -- Worldfallz
thanks both of you! i think
thanks both of you!
i think of the panel moduel too, but it seems that it divide the content area into columns, but cannot control the original sidebar, correct me if i'm wrong
i'm not using the zen 3-column module, if i have to use panel in content area, then i need to change everything, seems quite a tedious work for me
IIRC, you can't place items
IIRC, you can't place items into the standard sidebars, but you can replace them. In garland, this won't look the same, but in many other themes (depending on the styling of the sidebars) you can't tell the difference. In any case, i would think you could style the panel regions any way you want-- even to match the original sidebars.
===
"Give a man a fish and you feed him for a day.
Teach a man to fish and you feed him for a lifetime." -- Lao Tzu
"God helps those who help themselves." -- Benjamin Franklin
"Search is your best friend." -- Worldfallz