Environment Variable ze::$alias or zenario.alias

Description

An alias is a unique name for a content item.

For example, an alias may be product-XYZ-details.

An alias may contain characters (upper or lower case, so a-z and A-Z), digits, hyphens and underscores.

Depending on the site settings for a Zenario site, a suffix .htm or .html may be added in the canonical URL, though most commonly no suffix is used.

When a content item has a parent content item in the menu and it also has an alias, the canonical URL will contain each of the aliases in the hierarchy. So for example, a top level content item may be:

https://zenariosite.com/the-alias

or if a suffix is used then:

https://zenariosite.com/the-alias.html

When a content item is 2nd level in the menu, then most commonly:

https://zenariosite.com/parent-alias/the-alias

If a 3rd level content item, then:

https://zenariosite.com/grant-parent-alias/parent-alias/the-alias

On multilingual sites, all URLs will have a language code, such as for "en" (English):

https://zenariosite.com/en/grant-parent-alias/parent-alias/the-alias

In the situation that a parent page exists but doesn't have an alias, it will simply be omitted, for example if the parent page has no alias:

https://zenariosite.com/en/grant-parent-alias/the-alias

 

Where You Can Use It

The alias of the current content item is available for use in PHP and in JavaScript code.