default available Selectors for ControlDesigner
Out of the box I know Sitefinity includes several Selectors. I had learned of some of them with misc projects in Sitefinity 3.x, now they seem to be missing or moved in Sitefinity 4.x as I can only find an ExternalPageSelector.
Is there a documented list of Selectors available for developers to use? I am making a simple control to display a random ListItem on the screen from a specific List. I want the user to select the "List" from which the control will display an item from. It seems like a simple ListSelector would be something that should already exist and save me from having to go build a custom designer for.
FYI - Setting a Selector through an the ControlDesigner attribute on a public Property of a User Control you can change the default behavior of the generated interface the user sees when editing the widget on the page or template in the Sitefinity admin.
Hi,
Here are two articles that can help you understand how selectors work in Sitefinity 4.x and how you can implement them yourself:
http://www.sitefinity.com/blogs/joshmorales/posts/11-10-05/selecting_sitefinity_4_content_inside_widget_designers.aspx
http://www.sitefinity.com/blogs/slavoingilizov/posts/11-02-11/creating_a_thumbnail_selector_for_news_items.aspx
For Lists you can use our ContentSelector that takes a service url as an argument and returns all the content returned by this particular service (and can be used for all content types).