Index Plug-Ins
In addition to SVPlugIn
, Sandvox provides a specialized subclass: SVIndexPlugIn
. Its intention is to be connected to a collection (-indexedCollection
), and generate HTML from that.
Index Info.plist keys
SVPlugInIsIndex
SVPlugInIsIndex
is a boolean value. Set it to True
and your plug-in will appear in the "Indexes" submenu.
SVIndexMasters
An array of dictionaries. Used to populate Sandvox's list of page templates (e.g. the "New" toolbar item).
Let's say you've written an index plug-in that you expect to be used for podcasting. SVIndexMasters
in the Info.plist would look something like:
- SVIndexMasters
- Item 0
- SVMasterDisplayName = Podcast
- SVMasterPageTitle = Podcast
- SVPlugInIconPath = podcast.icns
- Item 0
This will cause Sandvox to generate a "Podcast" menu item. When selected, a collection is created that:
- Has the title "Podcast"
- Is pre-populated with an instance of your index plug-in
The menu item's icon is the "podcast.icns" image from your plug-in's bundle. if you don't specify this key, or the user is running Sandvox 2.0.x, then the plug-in's icon is substituted in.
Want more control? Let us know, more keys will be supported/published in the future.