Re-use of designers within other designers

Posted by Community Admin on 04-Aug-2018 22:12

Re-use of designers within other designers

All Replies

Posted by Community Admin on 23-Apr-2012 00:00

Hello,

We are developing a widget that includes another widget within it. Is there any way to expose the nested widget's designer to the user? We would prefer to avoid duplicating code from the nested control's designer in the parent.

Or, if nested widgets are bad practice, what is a good alternative? We have a top navigation bar that needs to be used across templates that use otherwise unrelated masters.

Thank you,
Chris

Posted by Community Admin on 28-Apr-2012 00:00

Hi Chris - 

Take a look at multi-view designers. A multi-view designer has "tabs" at the top allowing you to switch to different views. Then create some properties in your child widget that gets it's data passed from the parent widget.  http://www.sitefinity.com/documentation/documentationarticles/multi-view-control-designers 

Hope this is helpful.


Cheers,
Josh


This thread is closed