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