Index: branches/5.0.x/core/units/categories/categories_config.php =================================================================== diff -u -r13289 -r13328 --- branches/5.0.x/core/units/categories/categories_config.php (.../categories_config.php) (revision 13289) +++ branches/5.0.x/core/units/categories/categories_config.php (.../categories_config.php) (revision 13328) @@ -1,6 +1,6 @@ Array ( 'CurrentSort' => "REPLACE(ParentPath, CONCAT('|', ".'%1$s'.".CategoryId, '|'), '')", + 'AltName' => 'img.AltName', 'SameImages' => 'img.SameImages', 'LocalThumb' => 'img.LocalThumb', 'ThumbPath' => 'img.ThumbPath', @@ -404,6 +405,7 @@ 'OldPriority' => Array('type' => 'int', 'default' => 0), // for primary image + 'AltName' => Array('type' => 'string', 'default' => ''), 'SameImages' => Array('type' => 'string', 'default' => ''), 'LocalThumb' => Array('type' => 'string', 'default' => ''), 'ThumbPath' => Array('type' => 'string', 'default' => ''), Index: branches/5.0.x/core/units/images/image_tag_processor.php =================================================================== diff -u -r13248 -r13328 --- branches/5.0.x/core/units/images/image_tag_processor.php (.../image_tag_processor.php) (revision 13248) +++ branches/5.0.x/core/units/images/image_tag_processor.php (.../image_tag_processor.php) (revision 13328) @@ -1,6 +1,6 @@ SetDBField('Url', $parent_item->GetDBField('FullUrl')); - $object->SetDBField('AltName', $this->getItemTitle($parent_item)); - $object->SetDBFieldsFromHash($parent_item->GetFieldValues(), Array('SameImages', 'LocalThumb', 'ThumbPath', 'ThumbUrl', 'LocalImage', 'LocalPath')); + $object->SetDBFieldsFromHash($parent_item->GetFieldValues(), Array('AltName', 'SameImages', 'LocalThumb', 'ThumbPath', 'ThumbUrl', 'LocalImage', 'LocalPath')); + + if (!$object->GetDBField('AltName')) { + $object->SetDBField('AltName', $this->getItemTitle($parent_item)); + } + $object->Loaded = true; }