0

I want to create panel view based on comment. I there is any comment i want to disable comment for, and when there are no comment related to node i want to display comment form.

I want to do it via selection rules but I don't see any selection rules regarding to comments. I also try php visibility rule

if(%node:comment-count-new ==0)return false;

Still not working any one can help ?

user2217288
  • 529
  • 2
  • 14
  • 26

1 Answers1

0

My guess is that since you're writing php, you could just find out the count yourself, ex. https://drupal.stackexchange.com/questions/8582/how-to-show-node-comment-count-in-node-tpl

And if you want to find out the parameter from URL, ex. the current node id, use arg(1).

Community
  • 1
  • 1
windmaomao
  • 7,120
  • 2
  • 32
  • 36