shrimoyc3495951
shrimoyc3495951
11-07-2018
I am trying add subscription component i.e. Follow button in reply's toolbar (inside Forum post).
The Follow button should come before cancel and reply button in case of reply to a reply of a Post.
The follow button appears, but it does not display any options in it. Upon js debug, we found that the this variable has only id element and does not contain types, state etc.,
Steps followed:
{{include this.id path="subscriptions" resourceType="/apps/test/components/subscriptions"}}
2.Modified the custom Post component hbs file to include the custom toolbar template instead of OOTB toolbar.
{{include this resourceType='/apps/test/components/comments/comment' template="toolbar"}}
Please let us know if we are missing anything.
smacdonald2008
smacdonald2008
11-07-2018
Are you working on AEM Communities
shrimoyc3495951
shrimoyc3495951
12-07-2018
Hi smacdonald2008
Yes, I am working on AEM social communities Forum component.
I have to make Follow button appear beside the 'cancel' and 'Reply' button that is displayed when I do a reply to a reply on the Post.
One observation related to the issue is that in browser network calls, I see 404 Not Found response is obtained for
Please suggest how to fix this issue.
shrimoyc3495951
shrimoyc3495951
13-07-2018
I was going through Communities Comment component , is it something that I am missing on including 'subscriptions' component
{{include this.id path="subscriptions" resourceType="/apps/test/components/subscriptions"}}
in the template toolbar
{{include this resourceType='/apps/test/components/comments/comment' template="toolbar"}}
In browser network calls, I see that 404 Not Found response is obtained for
snbaem
snbaem
13-07-2018
Do you see "subscriptions" folder at "/content/usergenerated/asi/jcr/content/sites/soco/en/groups/test/jcr: content/content/primary/forum/xsas-EsSS/test1-VwNq/subscriptions" ?
Or does ""content/usergenerated/asi/jcr/content/sites/soco/en/groups/test/jcr: content/content/primary/forum/xsas-EsSS/test1-VwNq" exist?
That should get created when you add a forum post and then a comment on it I guess
content/usergenerated/asi/jcr/content/sites/soco/en/groups/test/jcr: content/content/primary/forum/xsas-EsSS/test1-VwNq/subscriptions
shrimoyc3495951
shrimoyc3495951
17-07-2018
Hi snbaem,
The reply to a post "content/usergenerated/asi/jcr/content/sites/soco/en/groups/test/jcr: content/content/primary/forum/xsas-EsSS/test1-VwNq" exists.
However, the "subscriptions" folder at "/content/usergenerated/asi/jcr/content/sites/soco/en/groups/test/jcr: content/content/primary/forum/xsas-EsSS/test1-VwNq/subscriptions" is not created.
Please let me know how do I get the folder created and resolve the issue.
smacdonald2008
smacdonald2008
17-07-2018
This could be a bug. If you are unable to fix - i recommend opening a support ticket.
snbaem
snbaem
17-07-2018
I think the folder should get created automatically OOTB (cannot tell what class does that). As Scott mentioned, this might be a candidate for support ticket. Meanwhile you can add the "subscriptions" folder node manually. But it may or may not need a sling:resourceType property and value I am unsure.
snbaem
snbaem
17-07-2018
Try the "subscriptions" node as jcr:primaryType = oak:Unstructured and add property sling:resourceType = social/subscriptions/components/hbs/subscriptions with type=String