Page 1 of 1

Nesting custom components inside custom components (or templates inside templates?)

Posted: Sat Jan 31, 2015 6:56 pm
by Elliot Lombardo

Is it possible to use a custom component inside another one?

For my particular instance, I'm trying to create two different tables of contents in a sidebar (they are two separate custom components now). I want to place these both inside one custom component but I want the two original components to remain editable instead of breaking them apart. Is this possible?


Nesting custom components inside custom components (or templates inside templates?)

Posted: Sat Jan 31, 2015 7:04 pm
by Alena Prykhodko

Hello,

To nest custom components inside other component you will need to break this other component apart.
Once it's broken apart, you still can see it in custom components list.
To edit them you first break them apart, edit and save again.


Nesting custom components inside custom components (or templates inside templates?)

Posted: Sat Jan 31, 2015 7:27 pm
by Elliot Lombardo

Yes but this disconnects it from the changes made on the original component. I'm trying to place 2 custom components inside of 1, then when I go to edit either of the 2 original components, they change on the new custom component.


Nesting custom components inside custom components (or templates inside templates?)

Posted: Sat Jan 31, 2015 7:41 pm
by Elliot Lombardo

I suppose my concern is that I create 100 templates (all different based off the page content). If I want to then go back and add a certain feature to all of them (such as changing the header title, or showing or hiding the footer) I can't do it with one edit, I would have to then go individually apply it to all 100 templates.


Nesting custom components inside custom components (or templates inside templates?)

Posted: Sat Jan 31, 2015 7:51 pm
by Alena Prykhodko

Yes.
But this is how it works.


Nesting custom components inside custom components (or templates inside templates?)

Posted: Sat Jan 31, 2015 7:59 pm
by Elliot Lombardo

Okay great, I figured it out. My logic on how the new component was built was completely wrong. Thank you!