PageInfoProviderGetPageInfoForUrl Method |
Parses the provided URL and returns a PageInfo object describing the required page in best matching culture.
Namespace: CMS.DocumentEngineAssembly: CMS.DocumentEngine (in CMS.DocumentEngine.dll) Version: 12.0.0
Syntax public static PageInfo GetPageInfoForUrl(
string url,
string cultureCode,
string defaultAliasPath,
bool combineWithDefaultCulture,
bool isDocumentPage,
string siteName
)
Parameters
- url
- Type: SystemString
Full URL of the request, including domain name, application, path and extension - cultureCode
- Type: SystemString
Current 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
Indicates if the culture version should be combined with default culture - isDocumentPage
- Type: SystemBoolean
Indicates if the URL stands for a document page - siteName
- Type: SystemString
Site name
Return Value
Type:
PageInfo
Returns null if no page exists in any culture version.
See Also