Environment Variable ze::$equivId

Summary

The equivalence id of the current content item.

Where You Can Use It

Anywhere in your PHP or JavaScript code. From Zenario 7.0.0 onwards.

Description

Content items have a two way primary key: their id and their type. You need both a $cID and a $cType to uniquely identify a content item, e.g. 1, html.

On multilingual sites, content items that are translations of each other are grouped together into translation chains, which have an $equivId. This is usually the value of the $cID of the default language.

On sites with only one language, the $equivId will always be the same as the $cID.