Section Fragments

While building a new site from scratch with Content Pages and custom page fragments I noticed there’s one specific functionality missing: Section Fragments.

We have multiple sections on a page where we re-use the same kind of custom fragments.
As an example here are two sections:

Section 1

Section 2

These sections can be found on many pages. As you can see both sections have a heading, one or more labels in common. We can create compositions but there’s one downside, it’s not propagated when a change is needed.

So in short we have micro fragments like label and heading that need to be combined in a section fragment. If we deploy the micro fragments or section fragments the propagation should automatically update all the pages. These kind of section fragments you will also find in simple website building tools like Wix. Feel free to reach out if you need a demonstration or want to discuss.

1 Answer

1

Ah, but that’s the beauty of supporting fragment compositions…

The two sections that you’ve identified can be turned into fragment compositions, then you can place the compositions on whatever page(s) you need them on and configure from there.

You could also build this using a custom fragment with more strict styling and editables. This can have some benefits for propagation if you foresee a lot of edits that might happen on them.

Liferay can’t provide every possible fragment rendering you might need, but it does provide the tools that you can easily get there yourself without too much effort and certainly without a lot of coding.

...almost @dnebing ... except fragment compositions won't have propagation and can't be changed in case something needs to be changed. The point is that we need fragments on atom level and combine those fragments at molecule level. This way we can make changes to atom level fragments which are automatically propagated..

So basically what we are looking for is a way to include fragments in fragments :-) and keep it propagating. I understand Liferay can build every fragment but can support real world use-cases to keep maintenance easy.