Can I use content fragments to build a news/blog page?

Avatar

Avatar

shawns34163620

Avatar

shawns34163620

shawns34163620

29-12-2019

I would like to create a dynamic news/blog similar to WordPress post using content fragments to display a list of news items with title, summary, and link to the Fullpage content.

 

Is this possible and how? 

content fragments

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

jakej40603950

Avatar

jakej40603950

jakej40603950

30-12-2019

Will the blog posts be composed on author instance by content authors?

If yes, then sure you can use CF. You can create a CF model with whatever fields you require (e.g. title, body, etc.)

https://www.youtube.com/watch?v=-Hn3UDJMc98 - tutorial on CF models.

Better idea maybe to just create a component / template with the required layout and dialog fields to compose the blog posts. Then just create a new page using that template whenever you want a new blog post.

This is assuming you want an approach to create blog posts rather than a component to list down existing blog articles. It's not very clear from your post.

If you're talking about allowing end users to create blogs on publish instance then CFs may not be used since they're an author-only feather AFAIK.

Answers (1)

Answers (1)

Avatar

Avatar

zonroc

Avatar

zonroc

zonroc

29-12-2019

Content Fragments are simply a collection of text and style. To build what you are describing, you will require a more complex set of components. You can look at using existing components or build your own components using Java and Sling Models.