Selecting and displaying a list of published documents
The most common requirement associated with providing access to content is to display lists of published documents organized by category, date or a custom metadata value. This allows the end-user to find the information being sought quickly without having to use the search facility. Core to selecting published content for display is the Web Part named HN Content Query Web Part. This Web Part is a copy of SharePoint's standard Content Query Web Part. It has been modified to function additionally with metadata that has been published by Hyper.Net.
You can see how this Web Part fits into SharePoint and functions by looking at it within SharePoint's Page Editor:
| |
|
|
|
Step
|
|
1
|
Open your publishing site and click on the Publication Center tab. The following screen will appear:
| |
|
|
Tip
|
When modifying page layouts or any other elements in SharePoint, remember to check your changes in when you're done or they will not be put into effect for end-users and will only be visible for you.
|
|
|
2
|
Click on Site Actions - Edit Page as illustrated above. SharePoint's page layout screen appears:
|
| |
|
|
3
|
Where the HN Content Query Web Part is displayed, click on edit - Modify Shared Web Part as shown above. The Web Part configuration panel will be displayed on the right, allowing you to configure the selection of content for the Web Part:
| |
|
|
Note
|
The configuration of Web Parts using SharePoint's visual interface is a standard SharePoint development skill we assume you have and is thus beyond the scope of this document.
|
In this example we have expanded the Query section. Notice the values in the Content Type group. You may also filter the selected documents as desired. In our example, we specify we only want documents where PUB_START is true. This selects only the first published Topic of a publication. This may be the Front Matter document of a Rich Hypertext rendition, or may be the published topic linking to a PDF if a PDF rendition was the only configured rendition for the selected documents. If we did not apply this filter, all Topics and renditions associated with a source document would be displayed in this view, resulting a quite a lot of clutter.
| |
|
|
Note
|
Hyper.Net automatically sets PUB_START to TRUE in the first published Topic of the publication associated with any converted document, no matter how many renditions are created within the publication.
|
|
| |
|
|
4
|
Scroll down within the configuration panel on the right to the Presentation group. The following screen will be displayed:
Within the Presentation section, you are able to configure the grouping and sorting of the selected and filtered topics. Here we have grouped by LastModifiedDate and under each date sorted by PublicationTitle.
Further down within this section is the Styles group. All of the items under Group style and Item style are standard SharePoint defaults except for the following (respectively):
| |
· |
Navigation - NavigationItem: Used to display selected topics using an expandable/collapsible table of contents paradigm. Items are grouped by a single categorizing factor such as LastModifiedDate or a specific custom metadata value. Selected topics are displayed hierarchically going to the deepest subtopic level.
|
| |
· |
Chronology - ChonologyItem: Used to display selected topics groups by a single categorizing factor such as LastModifiedDate or a specific custom metadata value. Selected topics are displayed in a flat, hierarchy-less fashion.
|
| |
· |
Ticker - TickerItem: Used to display selected topics in ticker format (a single-line, horizontally scrolling list of the selected topics that could be used, for example, to call attention to published documents that have been marked as urgent by means of some metadata value).
|
|
|
5
|
Modify the values in the configuration panel as desired and click on OK. You have now modified Hyper.Net's Content Query Web Part.
|