Expand my Community achievements bar.

Dynamic nested components and design nodes

Avatar

Level 4

I was wondering what was the recommended way of working with nested components in regards to design nodes.

Example:  We have a Tabs component.  In this component, we're creating tabs. Each tab contains a new parsys. This new parsys has a unique ID (ex. par-12345) to differentiate its content from other possible parsys in the template.

Now, if I want to restrict the list of components these parsys can use, I have to dynamically create a design node (ex. /etc/designs/myapp/jcr:content/my-template/tabs-layout/par-12345) upon a Tab creation.

(once the user clicks save, we're creating the design node, but user must refresh/empty browser cache before he can use the new parsys with the also newly created restricted component list, ... but that is another problem)

This is working right now.  But you know that feeling you have sometimes, like, there has to be another way.  You know what I'm talking about, right?

I would be glad to hear how you guys are handling these dynamic nested components.

0 Replies