Can I use content fragments to build a news/blog page? | Adobe Higher Education
Skip to main content
Level 2
December 29, 2019
Respondido

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

  • December 29, 2019
  • 2 respostas
  • 3440 Visualizações

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? 

Este tópico foi fechado para respostas.
Melhor resposta por jakej40603950

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.

2 Respostas

Level 3
December 29, 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. 

Level 5
December 30, 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.