| orion.navigate.content | ||
|---|---|---|
|
|
|
| orion.navigate.command | orion.navigate.openWith | |
The orion.navigate.content service is used to contribute buttons that help the user to create new top level folders with autogenerated content. The service describes a folder name and a command that should be run to generate the content, including the parameters to pass to the command. If the content is to be generated by simply linking to another page, a uriTemplate can be used to specify the link instead of a command and folder.
None. This service is purely declarative.
Implementations of orion.navigate.content may define the following attributes:
Here is a sample plug-in that uses the HTTP import command to unzip a zip file that is colocated with the Orion plugin into an Orion folder.
var provider = new orion.PluginProvider();
var temp = document.createElement('a');
temp.href = "testContent.zip";
provider.registerService("orion.navigate.content", null, {
id: "orion.content.test",
name: "Another Exemplary Sample Site",
description: "Generate a sample site from Susan's test plugin.",
folder: "Test New Content",
command: "orion.importZipURL",
parameters: [{name: "url", type: "url", label: "Extracted from:", defaultValue: temp.href},
{name: "unzip", type: "boolean", label: "Unzip:", defaultValue: true}]
});
provider.connect();
When this plug-in is installed, the user will see the "Another Exemplary Sample Site" button appear in the new content section of the navigator.
|
|
|
| orion.navigate.command | orion.navigate.openWith |