I managed to make Raxo consume data from Helix's Blog Media.
Follow the code changes in the RaxoAllModeProHelper.php file:
Code: Select all
if ($show_text || ($show_image && ($image_source === 'text' || $image_source === 'automatic'))) {
$query->select(' a.introtext, a.fulltext, a.attribs');
}
$show_image && $image_source != 'text' ? $query->select(' a.images, a.attribs') : '';
Code: Select all
$empty = [
'id', 'title', 'title_full', 'link', 'date', 'author',
'image', 'image_thumbnail', 'image_original', 'image_alt', 'image_title', 'image_attributes',
'category', 'category_id', 'category_name', 'category_link', 'featured',
'text', 'readmore', 'hits', 'rating', 'rating_value', 'rating_count',
'comments', 'comments_count', 'comments_link', 'attribs'
];
Code: Select all
// Retrieve Image
$img = array_fill_keys(['src', 'alt', 'ttl'], '');
$images = ($image_source != 'text') ? json_decode($item->attribs) : '';
if (
!empty($images->helix_ultimate_image) &&
($image_source === 'intro' || $image_source === 'automatic')
) {
$img['src'] = HTMLHelper::cleanImageURL($images->helix_ultimate_image)->url;
$img['alt'] = htmlspecialchars($images->image_alt, ENT_COMPAT, 'UTF-8');
$img['ttl'] = htmlspecialchars($images->image_intro_caption, ENT_COMPAT, 'UTF-8');
} ...
These changes are compatible with RAXO All-mode PRO version 2.05