Configuring custom tools for Contenta Web
If this is a new installation of Contenta Web and you have custom tools that you want to use in Contenta Web, follow the steps below.
- Execute the
pcmadmintool in single-user mode on the Contenta Server and add the custom tools. In the Tool Type field, select WEB. - After the tools are added, create custom objects as needed and add the tools to the objects’ tool lists. Note that if you have custom objects in an updated, existing database, they are available in Contenta Web.
See the SDL Contenta Administration User Guide for a complete description of adding tools and objects.
Configuring for Use of XML Style Sheets
If the Contenta AppData has been configured to display the data using a style sheet, the XML View tool applies the style sheet to the XML data to create the HTML, sets the mime type to text/HTML, and displays the data in the browser.
If AppData has not been configured to display the data using a style sheet, the tool sets the mime type to text/XML and sends the data directly to the browser.
There are three XSL style sheets delivered with Contenta Web:
| Filename | Used to display: |
|---|---|
| default.xsl | tabular representations of the XML data |
| rawData.xsl | raw XML data |
| tree-view.xsl | a hierarchy of data; used with corresponding tree-view.css stylesheet |
These style sheets are used in conjunction with the value you configure in AppData. To configure AppData and specify a style sheet:
- Place the style sheet you want to use under the Contenta directory:
- In the Contenta Explorer application, click .
The Tools Options window appears.
- Click the Tool Preferences tab.
- In the Tool Preferences window, click on the Global desktop in the left pane of the window.
A key must exist under Document Types that matches the data in the object’s Document Type property sheet field. If the key does not exist, add the key. (See the SDL Contenta Editor Tools User Guide for information if you do not know how to add the key.)
- Click the key under Document Types that matches the data in the objects’ property sheet field.
- Click the Insert Key button and enter: XML View.
The XML View key is entered under the document type key.
- Click the XML View key.
- Click the Insert Value button.
An Edit Value window appears.
- In the Value Name field enter: XSL_FILENAME
In the Value Data field, enter the filename of the xsl style sheet.