Content Management Guide
CHAPTER 14
In addition to the required infrastructure such as document types and folders, you can create optional parts of the CM subsystem infrastructure that define display styles and assign categories to content. This chapter has these sections:
Here is a workflow that illustrates the recommended order of operations for setting up the optional CM subsystem infrastructure:
Display styles specify how to display content for individual document types. The CMS Administration comes with a default display style that it automatically applies to all content unless you override it by creating custom display styles for document types.
For each display style, you can add one or more XSL style sheets that specify how to render content for particular user agents, such as Microsoft Internet Explorer and Netscape Navigator. You must create the XSL specifications in an external XSL editor, then upload the XSL file to a display style.
The CMS Administration Console treats XSL style sheets like documentsby:
Storing each XSL style sheet in one (and only one) folder, identifying it as a system resource
Requiring authorized users to publish the version of the XSL style sheet they want to apply to content
Before you create display styles Before you can create display styles, the following elements of the content infrastructure must be in place:
Infrastructure element |
For information see |
---|---|
Folder for physically storing XSL style sheets |
|
Document type for defining content structure |
Creating document types and Creating fields and adding them to a document type |
Instances of the document type(s) for which you want to create a display style |
Creation procedure After you complete these tasks, you are ready to:
To create an XSL style sheet based on existing content:
Enter content mode by clicking the Content button in the toolbar.
Your existing folders appear in the content tree view. You may need to expand some of these containers to see the complete view.
Click to select the folder that contains the content of interest.
Select the document of interest to open its Property Inspector.
Click Preview in the Property Inspector.
The Content Reader refreshes to display the XML code that underlies your content, along with a Show Styled Document button that allows you to redisplay the rendered content.
Copy the XML and paste it into an XSL editor and develop an XSL style sheet for the content.
Save the XSL style sheet in an XSL file on your local file system or designated network directory.
Now you are ready to create a display style that will use the XSL style sheet you just created.
Enter templates mode by clicking the Templates button in the toolbar.
A panel appears listing the document types that have been defined.
Select the document type for which you are going to define a display style.
TIP: If you want to create a new document type first, see Creating document types.
Click the XSL Style Sheets tab.
Two panes appear. The Default Display Styles pane lists any display styles that have already been created for the document type, and the Properties pane displays the properties of a selected display style. In the following example, no display styles have been created:
Enter a name for the new display style and (optionally) a description, then click Create The Display Style.
The new display style is added to the Default Display Styles pane.
If you want to designate the display style as the default for the selected document type, select the display style in the Default Display Styles pane and click Set As Default.
To upload an XSL style sheet to a display style:
Before performing this procedure, you must create an XSL style sheet in an external editor and store the specification as an XSL file on your network.
Enter Templates mode by clicking the Templates button in the toolbar.
A panel appears listing all document types that have been defined.
Select the document type that contains the display style of interest.
Click the XSL Style Sheets tab.
Two panes appear. The Default Display Styles pane lists any display styles that have been created for the document type, and the Properties pane displays the properties of a selected display style.
In the Default Display Styles pane, select the display style for which you want to add an XSL style sheet.
Click Upload in the Properties pane to upload the XSL style sheet you created externally.
Fill in the text boxes as follows:
The XSL style sheet is uploaded to the display style. If you expand the display style in the Default Display Styles pane, you will see its list of associated XSL style sheets.
The XSL style sheet is also uploaded as a system resource to the folder you specified in Step 6.
The properties of a document type can include an XSL style sheet that you can specify on the Advanced tab of the document type properties. This style sheet designation is included in the XML of all documents of this type that you create.
The CMS Administration Console content creation code uses this style sheet to render the data for that document type.
This style sheet designation is distinct from the styles and style sheets you can specify in the XSL Style Sheets tab (as described under Creating display styles). Those styles are used when displaying portlets of the document type in the Content Reader.
To specify a style sheet for the document type:
Enter templates mode by clicking the Templates button in the toolbar.
A panel appears listing all document types that have been defined.
Select the document type that contains the display style of interest.
To specify a style sheet document that currently exists in the CMS Administration Console:
Search for a document by name, title, or author by selecting the appropriate radio button, entering identifying information, and clicking the Search button.
This example shows a search for all resources that contain PC in their names.
Click Close Window to exit the Search For A Resource window.
Click Save to apply the style sheet specification to the document type properties.
To remove a style sheet specification from the document type properties:
Enter templates mode by clicking the Templates button in the toolbar.
A panel appears listing all document types that have been defined.
Select the document type that contains the display style of interest.
Under Document Creation Style Sheet, click Do Not Use Style Sheet.
Click Save to remove the style sheet specification from the document type properties.
If you plan to set up multiple categories for classifying documents, you may want to group them in a meaningful taxonomy.
For more information, see Classifying content.
Enter content mode by clicking the Content button in the toolbar.
Your existing taxonomies and categories appear in the content tree view. (You may have to expand the Default root category.)
Click the New Taxonomy icon, located in the bottom-left panel of the CMS Administration Console.
Click Untitled to open the Property Inspector for the new taxonomy:
Fill in the Name and Description text boxes in the Property Inspector, then click Save.
The name of the taxonomy is updated in the content tree view.
Select the Security tab in the Property Inspector and set security for the taxonomy, as described in Managing Content Security.
You can create one or more categories for classifying documents within a taxonomy.
For more information, see Classifying content.
Enter content mode by clicking the Content button in the toolbar.
Your existing taxonomies and categories appear in the content tree view.
Click the name of the taxonomy that will store your category.
Click the New Category icon in the bottom-left panel of the CMS Administration Console.
An Untitled category appears in the content tree view within the selected taxonomy.
Click Untitled to open the Property Inspector for the new category:
Fill in the Name and Description fields in the Property Inspector, then click Save.
The name of the category is updated in the content tree view.
Select the Security tab in the Property Inspector and set security for the category, as described in Managing Content Security.
Copyright © 2004 Novell, Inc. All rights reserved. Copyright © 1997, 1998, 1999, 2000, 2001, 2002, 2003 SilverStream Software, LLC. All rights reserved. more ...