+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / Implementing Shared Content selector on MVC widget

Implementing Shared Content selector on MVC widget

3 posts, 0 answered
  1. Johan
    Johan avatar
    17 posts
    Registered:
    18 Apr 2014
    29 Apr 2014
    Link to this post

    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?

  2. Johan
    Johan avatar
    17 posts
    Registered:
    18 Apr 2014
    01 May 2014
    Link to this post

    I found this documentation ( http://www.sitefinity.com/documentation/documentationarticles/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>

     

  3. Johan
    Johan avatar
    17 posts
    Registered:
    18 Apr 2014
    02 May 2014
    Link to this post

    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?

3 posts, 0 answered