Directory Specifications
Directory (markup snippet library) is exposed as XML documents that XStandard reads from the CMS. Implementation of this library is provided below:
For testing, you may use the following URLs:
Should you need to build your own implementation, below you will find the technical specifications.
Request
XStandard makes calls to the library via HTTP GET. The library can be a server-side script or a static XML document. With each request, XStandard sends the ID and metada for the given library (folder in the library) in the query string which can be read like this: $_GET['x-cms-directory-id'] and $_GET['x-cms-directory-metadata'].
Response
The Directory response is an XML document as show in the screen shot below.
<?xml version="1.0" encoding="ISO-8859-1"?><directory><containers><container><label>Folder 1</label><id>a</id><metadata></metadata><location></location><icon></icon></container><container><label>Folder 2</label><id>b</id><metadata></metadata><location></location><icon></icon></container></containers><objects><object><label>Item 1</label><data><p>Item 1</p></data><icon></icon></object><object><label>Item 2</label><data><p>Item 2</p></data><icon></icon></object></objects></directory>
Download directory.xml
Directory Response XML Description| Element | Description |
|---|
| containers / container / label | Friendly name. |
| containers / container / id | ID of the data store. |
| containers / container / metadata | Additional information for this data store. |
| containers / container / location | Location (URL) to an alternate Directory. |
| containers / container / icon | ID of an icon defined in XStandard's icons.xml. |
| objects / object / label | Friendly name. |
| objects / object / data | Escaped markup (code snippet). |
| objects / object / icon | ID of an icon defined in XStandard's icons.xml. |