Data Source Plugin
A Data Source is a plugin whose purpose is to help populate a page or pagelet type from the drag pasteboard. (We may have other uses for data sources in the future.)
The idea is that there are many different kinds of drag and drop data out there, and we want to make drag and drop be extensible. The data sources (built-in and third-party) all compete for the privilege of interpreting the drag pasteboard to determine what kind of page or pagelet to create, and how to get the information off of the pasteboard.
Sandvox comes with a number of drag sources
- Delicious
- Reads a drag from Delicious Monster (an Amazon URL); will create a Link page or a photo pagelet (that links to the Amazon URL)
- Feed
- Reads a URL that appears to be an RSS/Atom feed; will create a Feed pagelet.
- File
- Reads a general file; will create a file download.
- Folder
- Reads a folder (directory); will create a text page with an index.
- HTML
- Reads text that appears to be HTML, or an HTML file; will create an HTML page or pagelet.
- Image
- Reads image data or file or drags of an image from Safari/WebKit; will create an photo page or pagelet.
- RichText
- Reads plain or rich text data or file; will create a text page or pagelet.
- URL
- Reads a URL or bookmark (from Safari, .webloc files, etc.); will create a Link page or Link List pagelet.
- Video
- Reads audio/visual content, including Flash (but not protected iTunes audio); will create a movie page or pagelet.
- YouTube
- Recognizes a URL as coming from YouTube; creates a pagelet.
