Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
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)

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.

© 2015 Microsoft