Table of Contents

Enum UrlLanguageBehavior

Namespace
CMS.Websites
Assembly
CMS.Websites.dll

Represents the behavior of URL paths language when querying web pages using content query with InLanguage(string, bool).

public enum UrlLanguageBehavior
Extension Methods

Fields

UseFallbackLanguage = 0

Indicates that the URL paths will be retrieved for fallback items in the fallback item language.

This is the default behavior. Use when you are retrieving web pages with URL paths in multiple languages (using language fallbacks) and want to keep the URL path language same as language of fallback web page.

UseRequestedLanguage = 1

Indicates that the URL paths will be retrieved in the language specified by InLanguage(string, bool) even for fallback items.

Use when you are retrieving web pages with URL paths in multiple languages (using language fallbacks) and want to keep the URL path language consistent with the specified language.