Skip to main content
Oct 16, 2015 2:29 AM UTC
Solved

Comments Component issue while deleting a comment-CQ5 OOTB

I am extending the OOTB comments component .When i try to delete a comment which i have added previously, the comments are getting deleted but the total count and counter is not decreasing which has been stored under /content/usergenerated/<pagepath>/jcr:content/comments_index/key/counter .Please provide your valuable inputs

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
p_t
p_tAccepted solution
Oct 21, 2015 1:58 PM UTC

Just figured out a solution to my problem...

In my case the root of the problem was the fact that I embedded the comment component instead of adding it via parsys (which is done in the Geometrixx example, for instance). However, by including it with Sightly, no "comments" node was created below the content node of the page which is supposed to include the comments component. So I included the "comments" node as part of a parsys in the corresponding template. Have a look at this helpful explanation at SO for some details:

https://stackoverflow.com/questions/22392147/cq5-preload-a-parsys-with-components#answers-header

4 replies

p_t
Oct 20, 2015 9:37 PM UTC

I know it has been a while since this question was asked - but has anyone found a solution yet?

I have just recently stumbled upon the same problem on my project... So every kind of help would be highly appreciated :-D

Translate
p_t
p_tAccepted solution
Oct 21, 2015 1:58 PM UTC

Just figured out a solution to my problem...

In my case the root of the problem was the fact that I embedded the comment component instead of adding it via parsys (which is done in the Geometrixx example, for instance). However, by including it with Sightly, no "comments" node was created below the content node of the page which is supposed to include the comments component. So I included the "comments" node as part of a parsys in the corresponding template. Have a look at this helpful explanation at SO for some details:

https://stackoverflow.com/questions/22392147/cq5-preload-a-parsys-with-components#answers-header

Translate
smacdonald2008
Level 10
Oct 21, 2015 2:14 PM UTC

thanks for posting the solution. 

Translate
prajwal008
Level 2
Mar 29, 2016 7:11 AM UTC

Hi,

I'm also using the same OOB Comment component in AEM 6.1. I have a question, Can anonymous user can post the comment. As I'm facing the this issue, and logged in is required to post a comment.

Translate