Apr 5, 2011 at 8:15 AM
Edited Apr 5, 2011 at 8:18 AM
I have tried to create a custom command in Bing.Maps.Commands.BingMapCommands.cs to replace the above and create the widget through the BingMaps module rather than the Widgets module... but found my class wouldn't accept:
..saying "The type or namespace 'Widgets' does not exist in the namesparce 'Orchard'??!. This then meant I couldn't do the following to edit the Widget fields:
var location= _content.New("BingMapWidget");
location.As<WidgetPart>().LayerPart = "LocationPage"
So then I wondered whether I should edit Orchard.Widgets.Commands.WidgetCommands.cs to add in custom Switches... but this feels wrong as it's mucking around with the Orchard source.
Any advice much appreciated :)