I had a property list with Name and Value. I made a selection factory to display the names to select one item from the property list. Following that I could get the value of the selected item in the UI. Sample code below..
public IEnumerable<ISelectItem> GetSelections(ExtendedMetadata metadata) This is how I used it in the block: [SelectOne(SelectionFactoryType = typeof(BannerAlertColorSelectionFactory))] |
I need to expand the property list to add one more item, Ex: Name, Value, Image. But I have to keep the implementation still same. User will be selecting the Name in the CMS. I need to update the selection factory some how to return the entire item so I can access Value and Image both in UI.
Any help is most appreciated.