Article Blog Images not displayed in Article Correctly - Forum | JoomShaper
Staff replied Helix Framework

Article Blog Images not displayed in Article Correctly

Asked by Charlie 3 years ago Last activity 3 years ago

Currently using Blog Images to upload the blog image for an article content top image,
The article linked the created image as images/2022/10/19/xxxx.jpg
<img src="/images/2022/10/19/xxxx.jpg" itemprop="image">

which is relative path, but i think it should be absolute path with a / in front of the path in order to correctly display this image.
<img src="/images/2022/10/19/xxxx.jpg" itemprop="image">

10 replies

Charlie Asked this

Any help?

Charlie Asked this
3 years ago · edited

FYI: I enabled the JOOMLA .htaccess for the directory rewrite, the relative path image is not root any more, please advise how to fix this ? I think the BLOG IMAGE saved is using relative path, where to add the leading slash for the article display using BLOG IMAGE?

Charlie Asked this

in this HELIX framework (Bold font), need to add slash to the image path or check if no slash, add slash? This should solve the issue. Please advise

full_image.php ( PHP script, ASCII text )

/**

defined ('JPATH_BASE') or die();

use Joomla\CMS\Filesystem\File;
use Joomla\CMS\Layout\LayoutHelper;
use Joomla\CMS\Uri\Uri;

$params = $displayData->params;
$attribs = json_decode($displayData->attribs);

$template = HelixUltimate\Framework\Platform\Helper::loadTemplateData();
$tplParams = $template->params;
$og = isset($displayData->enableOpenGraph) ? $displayData->enableOpenGraph : $tplParams->get('og', 0);
$blog_image = $tplParams->get('blog_details_image', 'large');
$full_image = '';

if(isset($attribs->helix_ultimate_image) && $attribs->helix_ultimate_image != '')
{
if($blog_image == 'default')
{

$full_image = $attribs->helix_ultimate_image;

Toufiq Senior Staff

Hi there,

Thanks for contacting us. Sorry for the inconvenience. Will you please provide me the Joomla administrator access to check the issue? I will check & get back to you soon. 

-Thanks

Charlie Asked this

Here you go

Charlie Asked this

Any update?

Toufiq Senior Staff

Checking your issue.

Toufiq Senior Staff

Please check now and let me know. Thanks

Charlie Asked this

Thanks for help. It works now!

What have you done? Any detail?

Toufiq Senior Staff

Disabled jch compress extension.

Log in to reply.