condition.page.isLanguage ViewHelper <vhs:condition.page.isLanguage>

Condition: Is current language

A condition ViewHelper which renders the then child if current language matches the provided language uid or language title. When using language titles like 'de' it is required to provide a default title to distinguish between the standard and a non existing language.

Arguments

then

DataType

mixed

Required

false

Description

Value to be returned if the condition if met.

else

DataType

mixed

Required

false

Description

Value to be returned if the condition if not met.

language

DataType

string

Required

true

Description

Language to check

defaultTitle

DataType

string

Default

'en'

Required

false

Description

Title of the default language