Export (0) Print
Expand All
Expand Minimize

RichHtmlField.AllowExternalUrls property

Gets or sets the constraint that allows external URLs in the HTML when validating the value in this RichHtmlField object.

Namespace:  Microsoft.SharePoint.Publishing.WebControls
Assembly:  Microsoft.SharePoint.Publishing (in Microsoft.SharePoint.Publishing.dll)

[BrowsableAttribute(true)]
public bool AllowExternalUrls { get; set; }

Property value

Type: System.Boolean

If this property is set to true, during validation, it sets the RestrictUrlsToSiteCollection property to true and sets the GuidOfThisSiteCollection property to the ID() property of the current site collection. This means that only URLs in the HTML that are in the current site collection are accepted as valid.

Community Additions

ADD
Show:
© 2014 Microsoft