Table of Contents

Class ContentQueryParametersUrlExtensions

Namespace
CMS.Websites
Assembly
CMS.Websites.dll

Content query parameters extension methods related to web page URLs.

public static class ContentQueryParametersUrlExtensions
Inheritance
object
ContentQueryParametersUrlExtensions

Methods

UrlPathColumns(ContentQueryParameters)

Configures URL path columns to be selected.

public static ContentQueryParameters UrlPathColumns(this ContentQueryParameters parameters)

Parameters

parameters ContentQueryParameters

Content query parameters.

Returns

ContentQueryParameters

Remarks

The method is used to further parametrize the content query by configuring required columns (WebPageItemID, WebPageItemTreePath, WebPageUrlPath, WebPageItemWebsiteChannelId and ContentItemCommonDataContentLanguageID) needed to retrieve the web page URL using Retrieve(int, string, bool, CancellationToken). The method needs to be called along with 'ForWebsite' or 'WithWebPageData' configured in action of ForContentType(string, Action<ContentTypeQueryParameters>).