Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.
SOLVED

Using social components outside of Communities

Avatar

Level 3

Is it possible to use a Social component from the SCF outside of communities? Namely, we would like to extend components such as the comments component (/libs/social/commons/components/hbs/comments) to a normal AEM sites app without having to instantiate a community site project within that app.

Thank you in advance!

1 Accepted Solution

Avatar

Correct answer by
Level 10

Could you share the exact requirement?  To me, it would be better to create something from scratch rather than extending SCF.

Communities uses HBS (handlebars) template engine OOB which means it uses the framework to initialize, substitute, render, persist etc.

If you plan to use one component of SCF outside the engine, then I'm not sure how would you provide the associated libraries (js/css/global variables etc.) to that component? Even if somehow, you make it work outside communities, then what would be the end-to-end design/data flow of this use case?

Comments are treated as user generated content which would get stored in either TARMK or MongoMK based on the normal AEM site configuration. Hence, how would you plan to sync up these comments across all publish servers in your existing setup and manage replication/cache flush etc?

I assume that you have a solution in-place to these kind of scenarios.

HTH

View solution in original post

1 Reply

Avatar

Correct answer by
Level 10

Could you share the exact requirement?  To me, it would be better to create something from scratch rather than extending SCF.

Communities uses HBS (handlebars) template engine OOB which means it uses the framework to initialize, substitute, render, persist etc.

If you plan to use one component of SCF outside the engine, then I'm not sure how would you provide the associated libraries (js/css/global variables etc.) to that component? Even if somehow, you make it work outside communities, then what would be the end-to-end design/data flow of this use case?

Comments are treated as user generated content which would get stored in either TARMK or MongoMK based on the normal AEM site configuration. Hence, how would you plan to sync up these comments across all publish servers in your existing setup and manage replication/cache flush etc?

I assume that you have a solution in-place to these kind of scenarios.

HTH