Journal's comment resource type is set to social/journal/components/hbs/comment | Community
Skip to main content
Rajeev_Kumar
Level 3
July 4, 2017
Solved

Journal's comment resource type is set to social/journal/components/hbs/comment

  • July 4, 2017
  • 8 replies
  • 3204 views

Hi,

I have set the comment resource type to my custom comment component in journal component's design dialog. But on adding a comment to a blog,  the resourceType of comment is set to 'social/journal/components/hbs/comment' instead of the resource type set in design dialog.
Can any one suggest the solution for this.

Thanks

Rajeev

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

Open the design dialog for extended Journal component. There you can specify the type for your Entry Topic. Set it to you custom entry topic component's path.

From now on the new posts created with this component will have the correct resourceType.

But you might see that the posts are not being listed on the list page.

8 replies

Level 2
August 10, 2017

Did you get any solution  to this? Im still stuck. Basically the extended component doesnt work. The journal works but the entry_topic doesnt

Rajeev_Kumar
Level 3
August 10, 2017

I looked at the journal jar, there component resources type is hard coded. That's why it is being set to ootb component resource type.

Level 2
August 10, 2017

So is your entry_topic working with custom changes?

Rajeev_Kumar
Level 3
August 10, 2017

If you want to change the resource type, you'll have to customize the backend code. But if your resource type is not changing, it should work with existing apis.

Level 2
August 10, 2017

But extending will change the resource type right? Like overlay wont change the resource type... but extending will.

This sort of thing in the js

SCF.registerComponent('/apps/custom-blog/components/hbs/entry_topic', CustomBlogTopic, CustomBlogTopicView);

SCF.registerComponent('/apps/custom-blog/components/hbs/journal', CustomBlog, CustomBlogView);

Rajeev_Kumar
Level 3
August 10, 2017

Yes. Extending the components will change the resource type and you need to take care of that in js file. But when you check the stored content, you will find that the resource type stored content is ootb component resource type and not yours.

davidevg09
Level 2
March 28, 2018

Then what file do we need to update so that we can update the resource type or entry resource type so that our extended entry_topic component is the one being referred to instead of the OOTB component?

Because apparently the below code doesn't work for entry_topic

SCF.registerComponent('/apps/custom-blog/components/hbs/entry_topic', CustomBlogTopic, CustomBlogTopicView);

gurjeets
gurjeetsAccepted solution
Level 2
April 26, 2018

Open the design dialog for extended Journal component. There you can specify the type for your Entry Topic. Set it to you custom entry topic component's path.

From now on the new posts created with this component will have the correct resourceType.

But you might see that the posts are not being listed on the list page.