dealing with multiple dynamic content types in widget design

Posted by Community Admin on 05-Aug-2018 22:21

dealing with multiple dynamic content types in widget designer ?

All Replies

Posted by Community Admin on 02-Nov-2016 00:00

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>

This thread is closed