Implementing Shared Content selector on MVC widget
I have an MVC widget where I would like to implement 'Shared Content' selector like the one in Content Block widget. I have added a Guid property on my controller but the widget designer from Sitefinity Thunder does not provide an interface for 'Shared Content' selector. How can I implement that on my widget?
I found this documentation ( www.sitefinity.com/.../change-your-dynamic-content-selector-to-choose-from-generic-content )but when I implemented it, I don't see any content block listed even though I have created some. Below is the part on my designer that the documentation mentions to change. Any idea why this is not working?
<sitefinity:FlatSelector ID="ContentBlockIdItemSelector" runat="server" ItemType="Telerik.Sitefinity.GenericContent.Model.ContentItem" DataKeyNames="Id" ShowSelectedFilter="false" AllowPaging="false" PageSize="10" AllowSearching="true" ShowProvidersList="true" InclueAllProvidersOption="false" SearchBoxTitleText="Filter by Title" ShowHeader="true" ServiceUrl="~/Sitefinity/Services/Content/ContentItemService.svc/? managerType=&providerName=&itemType= Telerik.Sitefinity.GenericContent.Model.ContentItem &provider=&sortExpression=LastModified%20DESC &skip=0&take=50"> <DataMembers> <sitefinity:DataMemberInfo ID="DataMemberInfoContentBlockId" runat="server" Name="Title" IsExtendedSearchField="true" HeaderText="Title"> <span>Title.Value</span> </sitefinity:DataMemberInfo> </DataMembers> </sitefinity:FlatSelector>
It looks like that I have to put some text on the search box then it will show me some results. The problem is , what I see is 'undefined' as a title instead of an actual title. What needs to be changed to get the title show up properly?