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
parametersContentTypeQueryParametersContent type query parameters.
websiteChannelNamestringName of the website channel.
pathMatchPathMatchWeb page tree path for which the query should be limited.
includeUrlPathboolIndicates 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
parametersContentTypeQueryParametersContent type query parameters.
websiteChannelNamestringName of the website channel.
pathMatchesPathMatch[]Web page tree paths for which the query should be limited.
includeUrlPathboolIndicates 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
parametersContentTypeQueryParametersContent type query parameters.
urlLanguageBehaviorUrlLanguageBehaviorURL 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.