Develop helpful button component in AEM 6.3 | Community
Skip to main content
New Participant
Oct 17, 2019 2:55 PM UTC

Develop helpful button component in AEM 6.3

Hi,

I have a requirement to create helpful button component which will be used in all the article pages. On clicking the button, we should increment the count for unique users. Once the logged in user click on the button, we should disable the button for that specific user on that page. I'm looking for a best approach to implement this. Could anyone throw some light on this please.

Thanks in advance.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

7 replies

New Participant
Nov 19, 2019 12:06 PM UTC

No, we have not used OOTB Rating component. I was mainly looking for suggestions around storage as we do not have the user data stored in AEM. Now we have decided to use an external DB for storing the unique user identifier along with article page path.

Translate
Ankur_Khare
New Participant
Oct 23, 2019 11:26 AM UTC

were u able to use OOB rating component logic?

Translate
Ankur_Khare
New Participant
Oct 18, 2019 6:18 AM UTC

Previously when we used rating component it was written in jsp in cq 5.6.

Now i think you can refer this component-

Using Ratings

/libs/social/tally/components/hbs/rating

Translate
New Participant
Oct 18, 2019 4:42 AM UTC

Scott, we do not have the users stored in AEM. So, my main concern is with respect to storing the user info(unique identifier) as we have a lot of users. We need to store the user info to determine if a user has already liked the article. Should we use an external DB to store this data (user info specific to an article).

Translate
New Participant
Oct 18, 2019 4:21 AM UTC

Is it part of communities? Could you please provide me the path where I can find Rating component?

Translate
Level 3
Oct 17, 2019 3:58 PM UTC

I would use a sling model for this requirement.

Translate
Ankur_Khare
New Participant
Oct 17, 2019 3:21 PM UTC

Refer OOB rating component.

You can use the similar logic to implement this functionality.

Translate