There needs to be an access plugin for the node comment setting, which could be used to control the visibility rules for a pane on a node_view page.

Comments

damienmckenna’s picture

Status: Active » Needs review

This adds a small plugin named "Node: comments are open"; the code is based upon the node status plugin.

damienmckenna’s picture

StatusFileSize
new1.12 KB
mrjmd’s picture

StatusFileSize
new1.12 KB

Functional test went fine... this seems to work without issue. Rolled another with tiny fixes to comments.

michelle’s picture

Status: Needs review » Reviewed & tested by the community

I tested the patch in #3. I enabled the node_view page and created two variants. One variant used "Node: comments are open" as is and the other used it with the "Not" checked. I viewed a node and it showed the variant for comments open. I closed the comments and it showed the variant for closed comments.

japerry’s picture

Status: Reviewed & tested by the community » Fixed

Looks good to me. Committed.

  • japerry committed 1b3a10b on 7.x-1.x authored by DamienMcKenna
    Issue #2410815 by DamienMcKenna, mrjmd: Access plugin for node comments
    

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.