Great module... I can do most of what I want with it.
I'm not sure if this is a bug report, feature request or support request, but here's my issue...
I have two types of nodecomment content-types: "Review" and "Comment." "Comments" are there to add standard comments to the "Reviews."
Under the workflow settings for "Review," I have setup "Comment" as the "Node type for comments." The problem is:
- There is no "Add new Comment" link on the test review I made.
- The "Reply" links leads to the "Create Review" page rather than the "Create Comment" page.
Can the structure be setup in the way I want?
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | nodecomment_views_reply_link1.patch | 1.41 KB | quicksketch |
| #5 | nodecomment_views_reply_link2.patch | 1.37 KB | quicksketch |
| #4 | patch.txt | 1.35 KB | electricmonk |
Comments
Comment #1
sandiegoseo commentedI am having the same exact problem.
Comment #2
sandiegoseo commentedGreat work on the module to all the dev's.
I did some further investigating and there appears to be a partial workaround for this problem.
To use taite11's example, we have 3 node types:
1. 'Product', type: node
2. 'Review', type: nodecomment (allows users to comment on 'product')
3. 'Comment', type: nodecomment (allows users to comment on 'review').
'Product' workflow settings: Node type for comments = 'Review'.
'Review' workflow settings: Node type for comments = 'Comment'.
The problem:
When creating a Review for Product, everything works fine. However, when trying to create a Comment for Review, there is no 'Add new Comment' link visible. Furthermore, if you click on the 'Reply' link, you get taken to the "Create Review" form here:
/node/add/review/1/2
In this case, 1 refers to the Product node, and 2 refers to the Review node. So we simply change the URL to this:
/node/add/comment/2
This brings up the proper form "Create Comment" form.
Using this method the node association seems to work fine (Comment is a nodecomment under the the parent Review nodecomment). I tried using Fivestar to allow the Comment node to rate the Review node and it worked great. However, if you view the Review node, you will not see any comments. I assume this had to do with the bug itself.
Is this a bug or is this how this module is supposed to work? It would be awesome to enable the nodecomment for nodecomment capability.
Mark
Comment #3
sandiegoseo commentedComment #4
electricmonk commentedI think I solved this. Patch attached.
Comment #5
quicksketchThanks electricmonk, the patch definitely helped point out the problem. I tidied it up a bit to use the proper construct() and alias table names. I've committed the attached patch to 1.x and 2.x branches.
Comment #6
quicksketch