AssetUrlSelector.DisplayLookInSection Property
Determines whether the "Look In" locations section are hidden when the Asset Picker dialog box is launched.
Namespace: Microsoft.SharePoint.Publishing.WebControls
Assembly: Microsoft.SharePoint.Publishing (in Microsoft.SharePoint.Publishing.dll)
Syntax
'Declaration
Public Property DisplayLookInSection As Boolean
Get
Set
'Usage
Dim instance As AssetUrlSelector
Dim value As Boolean
value = instance.DisplayLookInSection
instance.DisplayLookInSection = value
public bool DisplayLookInSection { get; set; }
Property Value
Type: System.Boolean
Defaults to true.
If set to false, the "Look In" locations section are hidden when the Asset Picker dialog box is launched.
Remarks
By default, he current AssetUrl property value, last remembered location, the DefaultOpenLocationUrl property and known publishing library locations are used to determine where the Asset Picker opens, even if this flag is set to false and the "Look In" locations section does not appear in the dialog box. The value for UseImageAssetPicker determines which set of known publishing document libraries appears in the "Look In" section when it is displayed. When the DisplayLookInSection and DefaultToLastUsedLocation properties are both set to false and the DefaultOpenLocationUrl has a valid location, the Asset Picker opens in that location when there is no current AssetUrl value. It does not display any other locations on the left side of the dialog box, which encourages the user to select a URL from the provided location.
Examples
// These values control the appearance and behavior
// of the Asset Picker dialog box.
private const bool SampleDisplayLookInSection = false;
// Set values for the apperance and behavior of the asset picker dialog
assetSelector.DisplayLookInSection = SampleDisplayLookInSection;