Table of Contents

Enum HrefLanguageMode

Namespace
Dynamicweb.Frontend
Assembly
Dynamicweb.dll

Specifies how hreflang attributes should be generated for multilingual pages.

public enum HrefLanguageMode

Fields

FullCulture = 0

Always outputs the full language and region code (for example, "da-DK" or "de-DE"). Use this when each regional variant of a language requires its own hreflang entry.

LanguageOnly = 1

Outputs only the language code (for example, "da" or "de"). Use this when there is only one version of each language, and regional targeting is unnecessary.

Mixed = 2

Uses the language-only code if the language exists in only one region, otherwise uses the full language–region code when multiple areas share the same language. This is the recommended balanced mode for mixed multilingual sites.

To top