Article Blog Images Not Displayed In Article Correctly - Question | JoomShaper
Black Friday sale is live with flat 50% OFF. Sale ends soon! Grab your deal now!

Article Blog Images Not Displayed In Article Correctly

C

Charlie

Helix Framework 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">

0
10 Answers
C
Charlie
Accepted Answer
3 years ago #91340

Any help?

0
C
Charlie
Accepted Answer
3 years ago #91342

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?

0
C
Charlie
Accepted Answer
3 years ago #91346

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;

0
Toufiq
Toufiq
Accepted Answer
Senior Staff 3 years ago #91443

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

0
C
Charlie
Accepted Answer
3 years ago #91516

Here you go

0
C
Charlie
Accepted Answer
3 years ago #91573

Any update?

0
Toufiq
Toufiq
Accepted Answer
Senior Staff 3 years ago #91640

Checking your issue.

0
Toufiq
Toufiq
Accepted Answer
Senior Staff 3 years ago #91641

Please check now and let me know. Thanks

0
C
Charlie
Accepted Answer
3 years ago #91722

Thanks for help. It works now!

What have you done? Any detail?

0
Toufiq
Toufiq
Accepted Answer
Senior Staff 3 years ago #91846

Disabled jch compress extension.

0