Cette conversation a été verrouillée en raison de son inactivité. Veuillez créer une nouvelle publication.
Niveau 1
Niveau 2
Se connecter à la communauté
Connectez-vous pour voir tous les badges
Cette conversation a été verrouillée en raison de son inactivité. Veuillez créer une nouvelle publication.
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
Résolu ! Accéder à la solution.
Vues
Réponses
Nombre de J’aime
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.
Vues
Réponses
Nombre de J’aime
Did you get any solution to this? Im still stuck. Basically the extended component doesnt work. The journal works but the entry_topic doesnt
Vues
Réponses
Nombre de J’aime
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.
Vues
Réponses
Nombre de J’aime
So is your entry_topic working with custom changes?
Vues
Réponses
Nombre de J’aime
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.
Vues
Réponses
Nombre de J’aime
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);
Vues
Réponses
Nombre de J’aime
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.
Vues
Réponses
Nombre de J’aime
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);
Vues
Réponses
Nombre de J’aime
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.
Vues
Réponses
Nombre de J’aime
Vues
Likes
Réponses
Vues
Likes
Réponses
Vues
Likes
Réponses