Click or drag to resize
PageInfoProvider.GetPageInfoForUrl Method
Parses the provided URL and returns a PageInfo object describing the required page in best matching culture.

Namespace: CMS.DocumentEngine
Assembly: CMS.DocumentEngine (in CMS.DocumentEngine.dll) Version: 10.0.0
Syntax
C#
public static PageInfo GetPageInfoForUrl(
	string url,
	string cultureCode,
	string defaultAliasPath,
	bool combineWithDefaultCulture,
	bool isDocumentPage,
	string siteName
)

Parameters

url
Type: System.String
Full URL of the request, including domain name, application, path and extension
cultureCode
Type: System.String
Current culture code
defaultAliasPath
Type: System.String
Default alias path to use in case of default page, if null the path is taken from the system configuration
combineWithDefaultCulture
Type: System.Boolean
Indicates if the culture version should be combined with default culture
isDocumentPage
Type: System.Boolean
Indicates if the URL stands for a document page
siteName
Type: System.String
Site name

Return Value

Type: PageInfo
Returns null if no page exists in any culture version.
See Also