Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. create "promo-block:ImageField" tag, that will:
    1. get field name using this code: $field = $this->SelectParam($params, 'name,field');
    2. if "$field" is "false" (means no parameter was given) then use "Image" field name
    3. create "$current_language_field" variable, that would represent field name on current language (e.g. "l3_Image" for "Image" field)
    4. get field value (via "GetDBField" method)
    5. if value found, then set $params['name'] to the "$current_language_field" and return "Field" tag result
    6. set $params['name'] to the field name on primary language and return "Field" tag result

Related Tasks

Jira Legacy
serverSystem Jira
serverId513b375f-8291-3313-9d9f-704c39b1f915
keyINP-1547