Displaying metadata in the Info box
Some metadata values are not important enough to merit displaying them on every published topic. Such metadata is more appropriately displayed for the user on request, such as with the Info box in Hyper.Net's sample WCMS application:
For illustrative purposes, here's how to add metadata to the info box:
| |
|
|
|
Step
|
|
1
|
Locate, download and edit the TopicStructured.aspx page layout in VisualStudio as described in Displaying metadata in the content presentation.
|
|
2
|
Search for Publication Title. The cursor will move to the section of the code used to render the Info box for the user.
|
| |
|
|
3
|
Copy this line and the one following it to the clipboard and paste it back into the desired location within the Info box code, for example:
|
|
4
|
Modify the lines you just pasted into the code to refer to the metadata Division (or the Output Name you defined in the Hyper.Net schema). Be sure that the value following "id=" is unique, especially if you have already used the Division metadata elsewhere in the page layout. Here is an example:
|
|
5
|
Upload and Save/Check-in the file from your desktop back into SharePoint.
|
| |
|
|
Note
|
You have now modified the page layout used to display hypertext topics within the Rich Hypertext rendition of a publication. The metadata will display in the Info box when selected by the user.
Keep in mind, however, that no value will be displayed within the WCMS application for any document having the property Division that has not yet been published through Hyper.Net. You must first modify and save a document (or simply modify its properties) before checking to see if your changes have been successful.
|