Click or drag to resize

ISiteCopyRegionRootPage Method


Clones a Region Root, together with its descendants, to another location. The cloned Page will also be a Region Root, with the specified language setting applied.

This method will create a collection of Lingual Maps from the source Page and its descendants, to their corresponding clone Pages.

Namespace:  Ingeniux.CMS
Assembly:  Ingeniux.CMS.CSAPI (in Ingeniux.CMS.CSAPI.dll) Version: 10.6.308
Syntax
IEnumerable<ILingualPageMap> CopyRegionRootPage(
	IPage page,
	IPage parent,
	EnumCopyActions placing,
	ILocale targetLocale,
	bool includeDescendants = true
)

Parameters

page
Type: Ingeniux.CMSIPage
The Region Root Page to be copied
parent
Type: Ingeniux.CMSIPage
The target location
placing
Type: Ingeniux.CMS.EnumsEnumCopyActions
The location to place the copied Pages relative to the "parent"
targetLocale
Type: Ingeniux.CMSILocale
The language to set on the cloned Region Root
includeDescendants (Optional)
Type: SystemBoolean

[Missing <param name="includeDescendants"/> documentation for "M:Ingeniux.CMS.ISite.CopyRegionRootPage(Ingeniux.CMS.IPage,Ingeniux.CMS.IPage,Ingeniux.CMS.Enums.EnumCopyActions,Ingeniux.CMS.ILocale,System.Boolean)"]

Return Value

Type: IEnumerableILingualPageMap
The new Lingual Map between the source Region Root and its clone Region Root at target location
Exceptions
ExceptionCondition
ArgumentNullExceptionWhen the parameter "page" or "parentPage" is null, or "parentPage" being Root of the Site, and the "placing" is to a sibling position, or when "targetLocale" is null.
ArgumentExceptionWhen "page" or "parentPage" doesn't have valid Hierarchy value, or when "page" is not Region Root,
InvalidOperationExceptionWhen "page" is either Root Page or Recycle Folder; Or when the Region Roots of "page" and "parentPage" don't have established Lingual Map yet.
SecurityExceptionWhen Operating User doesn't have the necessary node-level permssions. The Operating User must have at least read-only permission on "page", and full access on the actual target parent Page.
Remarks

This method for for strictly copying a Page that is a Region Root. That means this Page must have a Locale, and must not Inheriting the Locale from its ancestor. Failure to meet this condition will generate errors.

Four events are fired in the following order: BeforeRegionRootCopy, BeforePageCopy, AfterPageCopy, and AfterRegionRootCopy.

See Also