comment form for currently active node

Created on 20 July 2012, over 12 years ago
Updated 21 January 2023, almost 2 years ago

We would like to be able to expose a comment form in a block.

Proposed behavior;
Expose a comment block.
menu_get_object() will be used to determine the currently viewed object. If the returned object from menu_get_object() is a node with comments allowed we will render the comment form in a block. Otherwise the block content is empty so that the block is not rendered out of context.

I'm sure there are other use cases where something a bit more flexible than menu_get_object() would be required, but I think this is a solid simple starting point that doesn't expose one block for each possible node.

Patch forthcoming.

✨ Feature request
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States jgraham

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024