More in this section
Forums / Project Feather / dealing with multiple dynamic content types in widget designer ?

dealing with multiple dynamic content types in widget designer ?

The forums are in read-only mode. In case that you want to directly contact the Progress Sitefinity team use the support center. In our Google Plus group you can find more than one thousand Sitefinity developers discussing different topics. For the Stack Overflow threads don’t forget to use the “Sitefinity” tag.
1 posts, 0 answered
  1. Tigger
    Tigger avatar
    17 posts
    Registered:
    25 Apr 2016
    02 Nov 2016
    Link to this post

    I am trying to figure out how to offer the ability to select more than one content type via the designer (extending the SingleDynamicContent sample widget)

    So long as the content type is the same (defined in ItemType) I can get the items selected and saved

    But when there are two content types I cannot get select the second one … when I click "select"

    I get a "Specified argument was out of the range of valid values"

     

            <div class="form-group">
                <label>Choose dynamic content type:</label>
                <input type="text" ng-model="properties.ItemTypeBackgroundColor.PropertyValue" class="form-control" />
            </div>

            <div class="form-group">
                <label>Background Color:</label>
                <div class="row">
                    <div class="col-xs-6">
                        <sf-list-selector sf-dynamic-items-selector
                                          sf-item-type="properties.ItemBackgroundColor.PropertyValue"
                                          sf-selected-item-id="properties.SelectedItemIdBackgroundColor.PropertyValue"
                                          sf-provider="properties.ProviderName.PropertyValue" />


                    </div>
                </div>
            </div>

1 posts, 0 answered