Class ContentTypeQueryParametersExtensions
Content type query parameters extension methods related to web pages.
public static class ContentTypeQueryParametersExtensions
- Inheritance
-
objectContentTypeQueryParametersExtensions
Methods
ForWebsite(ContentTypeQueryParameters, string, PathMatch, bool)
Adds the website data to the result query.
public static ContentTypeQueryParameters ForWebsite(this ContentTypeQueryParameters parameters, string websiteChannelName, PathMatch pathMatch = null, bool includeUrlPath = true)
Parameters
parameters
ContentTypeQueryParametersContent type query parameters.
websiteChannelName
stringName of the website channel.
pathMatch
PathMatchWeb page tree path for which the query should be limited.
includeUrlPath
boolIndicates if the URL path should be included in the retrieved data.
Returns
ForWebsite(ContentTypeQueryParameters, string, PathMatch[], bool)
Adds the website data to the result query.
public static ContentTypeQueryParameters ForWebsite(this ContentTypeQueryParameters parameters, string websiteChannelName, PathMatch[] pathMatches, bool includeUrlPath = true)
Parameters
parameters
ContentTypeQueryParametersContent type query parameters.
websiteChannelName
stringName of the website channel.
pathMatches
PathMatch[]Web page tree paths for which the query should be limited.
includeUrlPath
boolIndicates if the URL path should be included in the retrieved data.
Returns
SetUrlLanguageBehavior(ContentTypeQueryParameters, UrlLanguageBehavior)
Defines the behavior for URL paths of web pages in fallback languages when content query is configured with InLanguage(string, bool).
public static ContentTypeQueryParameters SetUrlLanguageBehavior(this ContentTypeQueryParameters parameters, UrlLanguageBehavior urlLanguageBehavior)
Parameters
parameters
ContentTypeQueryParametersContent type query parameters.
urlLanguageBehavior
UrlLanguageBehaviorURL language behavior.
Returns
Remarks
This behavior applies to web pages retrieved using 'ForWebsite' and 'WithLinkedItems' methods.
When limiting retrieved columns via the 'Columns' query parameterization, call UrlPathColumns(ContentTypeQueryParameters) to ensure all data necessary for URL resolution.