Expand my Community achievements bar.

Overview component for contentfragment

Avatar

Level 1

I'm creating a component "overview" for which a dialog allows the user to give path to different content fragment as shown below :

Capture1.png

These paths are saved as a multi string property under the overview component. For each of these paths, a new component "contentfragment" is created using data-sly-resource. The problem is that as the contentfragment components are created under the overview component, they are not present in the JCR as nodes. So, I don't have any possibility to add the property : "fragmentPath" to these contentfragment elements to make them rendering the fragment.

Is there a better way to create a component as list to generate items that are contentfragment and dynamically set them the fragmentPath without having these components as nodes?

0 Replies