Image support - HELIX3 blog options - featured image and post formats

Presale questions & requests related to RAXO modules
rafaeltribos
Posts: 3
Joined: Aug 07, 2015 11:15 pm

Re: Image support - HELIX3 blog options - featured image and post formats

Post by rafaeltribos »

I studied the way the MSENA user instructed and, studying the source and phpMyAdmin,
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') : '';
a.attribs added

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'
			];
'attribs' added

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');
					} ...
replaced Joomla article image extraction with Helix image extraction

These changes are compatible with RAXO All-mode PRO version 2.05
Admin
Site Admin
Posts: 1542
Joined: Jan 31, 2010 9:53 pm
Joomla! version: 4.0.5
PHP version: 8.0

Re: Image support - HELIX3 blog options - featured image and post formats

Post by Admin »

rafaeltribos wrote: Feb 14, 2025 3:15 am I managed to make Raxo consume data from Helix's Blog Media.

Follow the code changes in the RaxoAllModeProHelper.php file:

These changes are compatible with RAXO All-mode PRO version 2.05
Thank you very much for your work.

I edited your post to leave the necessary changes in the code, instead of posting the entire file. This will allow users to use these changes on other versions of the module, including future ones.
Post Reply