Dynamic Module Selector in Widget Designer
www.sitefinity.com/.../creating-dynamic-module-selectors
Is this option obselete? I don't see any field called ModuleItemId.. If this option is obselete how do I get this functionality? Do I create a DynamicContentSelector in another project and then use it in the designer?
Hello Khai,
A widget designer is used to set the properties of the widget. You do not see ModuleItemId as an available option because the widget which you selected in the previous step does not have a public property with the name ModuleItemId.
You can create a dynamic module item selector by following these steps.
1. If possible, please wait until Sitefinity Thunder version 1.2.3.0 is officially released. It should be out by the end of the week. There are some issues with this selector in the latest version of Sitefinity.
2. If your widget already has a designer, remove the ControlDesigner attribute from the widget's class.
3. Create a public Guid property in your widget. Guid properties are used when creating selectors in order to store the selected item's id. Example:
public
Guid SelectedItemId
get
;
set
;
Ah I see, I missed that part :) Thanks a lot! I've tested it out and it indeed doesn't work well yet with the latest version, I'll wait for the new version of Thunder.