Using a list or library view to drive the list of folders or content


note

 

Configurable only via configuration update process

 

The default view defined in SharePoint will be automatically presented when viewing a library.


Another option, is to present a list based on a specific view of the library/list as it is presented in SharePoint.


When a view is created and is named “Content View” in a library/list in SharePoint, this content will be presented in the Open, Insert and Save dialogs.


Navigation Tree: OnePlace Solutions will always look for a view called “Content View Navigation” in a library/list in SharePoint to present the list of folders to select in the navigation tree.


If this view is present it will be used to drive the list of folders in the navigation tree of the OnePlaceMail Insert, Open and Save dialogs and the embedded view. This can be set through the configuration update process.


The table below describes the properties that can be modified on the <contentView > tag.

 

 Property

 Mandatory / Optional

 Description

 action

 Mandatory

Set to "insert" to change the default behavior 
Set to "delete" to revert to default behavior

 type

 Mandatory

Valid value:
“default” – this view will be used to drive content (not  folders) in all dialogs  "navigationtreefolders" –
if specified will use this view  only when getting the list of folders in a library/list.

 name

 Mandatory

The name of the view to be used

 

Example: Modifying the view to use to drive the list of all content and folders

 

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <contentViews>
        <contentView type="default" action="delete"/>
        <contentView type="default" name="Our Content View" action="insert"/>
    </contentViews>
</configuration> 


 

Example: Modify the view to use for location content and list of folders

 

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <contentViews>
        <contentView type="default" action="delete"/>
        <contentView type="default" name="Our Content View" action="insert"/>
        <contentView type="navigationtreefolders" action="delete"/>
        <contentView type="navigationtreefolders" name="Folders View" action="insert"/>
    </contentViews>
</configuration>