Click or drag to resize
PageInfoProviderGetDataForPageInfoForUrl Method
Parses the provided URL and returns a PageInfo object describing the required page.

Namespace: CMS.DocumentEngine
Assembly: CMS.DocumentEngine (in CMS.DocumentEngine.dll) Version: 8.2.23
Syntax
C#
public static PageInfo GetDataForPageInfoForUrl(
	string siteName,
	string url,
	string cultureCode,
	string defaultAliasPath,
	bool combineWithDefaultCulture,
	bool isDocumentPage,
	out PageInfoResult pageResult
)

Parameters

siteName
Type: SystemString
Site name
url
Type: SystemString
Full url of the request, including domain name, application, path and extension
cultureCode
Type: SystemString
Current document culture code
defaultAliasPath
Type: SystemString
Default alias path to use in case of default page, if null the path is taken from the system configuration
combineWithDefaultCulture
Type: SystemBoolean
Combine with default culture?
isDocumentPage
Type: SystemBoolean
Is document page
pageResult
Type: CMS.DocumentEnginePageInfoResult
Returns the contextual data for the given url

Return Value

Type: PageInfo
Returns null if no such page exists.
Exceptions
ExceptionCondition
PageNotFoundExceptionThrown when PageInfo was not found for current URL.
DomainNotFoundExceptionThrown when SiteInfo was not found for current URL.
See Also