getCIDAndCTypeFromSetting()
public final function getCIDAndCTypeFromSetting(&$cID, &$cType, $setting, $getLanguageEquivalent = true)
Allows you to get a Content ID and Content Type from a content
field type setting.
Can be used in methods called by plugins. From Zenario 7.0.0 onwards.
$setting
The name of a content
field type setting from your XML
description.
$getLanguageEquivalent
If the AVLS Plugin is installed, the CMS will attempt to ensure that the Content Item returned is in the current visitor's language.
You may disable this behaviour by setting this to false
.
Populates $cID
and $cType
with the Content ID and Content Type of the item selected.