We’re trying to create an extended version of the built in Sitefinity ImageControl by creating a separate toolbox.config entry with a custom LayoutTemplate specified.
This essentially works, however when dragging the control from the toolbox in the editor it does not have the custom LayoutTemplate we specified in the config, it uses the default ImageControl LayoutTemplate.
If we manually change the value in the advanced settings of the widget to our new template, it all works. However, obviously in terms of usability this is quite useless.
Is it a bug that the widget doesn’t pick up out LayoutTemplate in the toolbox.config, or is there something else we need to do in order for it to be picked up automatically?
Thanks in advance for your help!
It sounds like a bug to me, you should raise a bug report through the ticketing system.
In the meantime have you tried using Option 2 of this blog posted by Josh Morales:
Mapping External Templates for Sitefinity Widgets
It is written for version 4, but should still work in 5.