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

Forums / Bugs & Issues / Dynamic Items Field Control Selector bug

Dynamic Items Field Control Selector bug

2 posts, 0 answered
  1. Garrett
    Garrett avatar
    3 posts
    Registered:
    03 Jan 2011
    15 Oct 2012
    Link to this post
    Hello,

    http://www.sitefinity.com/documentation/documentationarticles/creating-field-control-with-selector-for-dynamic-items

    When following the documentation located in the link above, I am coming across an issue when the dynamic module has a space in the name.

    When I create a new Dynamic Content Selector under a module that has a space in the name, the select fails to load correctly when adding/editing content records in the back-end.

    Upon further review, it seems to be a spacing issue.

    The link that Sitefinity TRIES to load is as follows:

    http://***.com/Sitefinity/Services/DynamicModules/Data.svc/?itemType=Telerik.Sitefinity.DynamicTypes.Model.Video%20Games.VideoGame&itemSurrogateType=Telerik.Sitefinity.GenericContent.Model.Content&allProviders=true&skip=0&take=50

    ...but the only link that resolves is this one (change is in bold):

    http://***.com/Sitefinity/Services/DynamicModules/Data.svc/?itemType=Telerik.Sitefinity.DynamicTypes.Model.VideoGames.VideoGame&itemSurrogateType=Telerik.Sitefinity.GenericContent.Model.Content&allProviders=true&skip=0&take=50

    This issue prevents me from using the selector as it never succeeds in loading the list of items to choose.

    Thanks,

    Garrett
  2. Garrett
    Garrett avatar
    3 posts
    Registered:
    03 Jan 2011
    15 Oct 2012 in reply to Garrett
    Link to this post
    Found the fix!

    It looks like the "VideoGameSelctor.cs" file that was generated within VS has an issue on this line:

    private string dynamicModuleType = "Telerik.Sitefinity.DynamicTypes.Model.Video Games.VideoGame";

    Removing the space in "Video Games" fixed the problem.
2 posts, 0 answered