How to create a landing page that can auto populate the latest blog entries from the inbuilt communities blog module? | Community
Skip to main content
PiyushA1986
Level 2
May 16, 2019 11:33 AM UTC
Solved

How to create a landing page that can auto populate the latest blog entries from the inbuilt communities blog module?

How to create a landing page that can auto populate the latest blog entries from an inbuilt communities blog module?

Bharath_valse
Bharath_valseAccepted solution
Level 4
May 16, 2019 9:43 PM UTC

Which version of AEM are you using?

You could include the forum component within the landing page template and customize it to just list the latest posts and limit the list to a certain number. Please refer the component guide URL [0] to find out the client libraries required for the template.

[0]

http://localhost:4506/content/community-components/en/forum.html

5 replies

PiyushA1986
Level 2
May 20, 2019 12:34 PM UTC

Hi smacdonald2008,

Thanks for sharing the solution. I have thought of the same concept to write a web service to get the forum component content feeds to populate on a custom page. I have few queries to that :

  • Forums/Blogs components are a part of Community module default templates available. Do i need to create a new template for the custom page?
  • Can you please help and share a small GitHub code example that can help me out to read JCR content and setting up of the custom page?

Thanks

Piyush

Translate
PiyushA1986
Level 2
May 17, 2019 11:17 AM UTC

Hi Bharat,

Thanks for sharing the solution. Adding component on the landing page will also display the component and i want a clean and impressive landing page similar to :

Where a user can post a blog or forum with some digital asset and that item will display on the landing page in above format with a image + Little description.

Will work on the display part later, first i need to retrieve the Blog/Forum details from JCR and display on the page.

Thanks

Piyush

Translate
PiyushA1986
Level 2
May 17, 2019 6:02 AM UTC

Hi smacdonald2008,

Thanks for sharing the solution. I have thought of the same concept to write a web service to get the forum component content feeds to populate on a custom page. I have few queries to that :

  • Forums/Blogs components are a part of Community module default templates available. Do i need to create a new template for the custom page?
  • Can you please help and share a small GitHub code example that can help me out to read JCR content and setting up of the custom page?

Thanks

Piyush

Translate
Bharath_valse
Bharath_valseAccepted solution
Level 4
May 16, 2019 9:43 PM UTC

Which version of AEM are you using?

You could include the forum component within the landing page template and customize it to just list the latest posts and limit the list to a certain number. Please refer the component guide URL [0] to find out the client libraries required for the template.

[0]

http://localhost:4506/content/community-components/en/forum.html

Translate
smacdonald2008
Level 10
May 16, 2019 3:26 PM UTC

These blog items should be stored somewhere in the JCR - like everything else in AEM. YOu can look at writing a service that can read them, put them into a collection and them display them  where needed.

Translate