image missing in CMS code block in themler

marco.marino1971
54 Posts
marco.marino1971 posted this 19 August 2016

Greetings,
I am trying to use cms code block to insert CMS static blocks from magento.
I created a static block in magento as you see here:

cms-image-in-block.jpg

then I inserted a cms code block in themler with this code:
<?php $store?>getStore()->getCode();
if($Store == "it"){
$staticBlock = Mage::getModel('cms/block')->load('products_free_ship_IT');
//echo $staticBlock->getTitle(); // block title
echo $staticBlock->getContent(); // block content
}
elseif($Store == "en"){
$staticBlock = Mage::getModel('cms/block')->load('products_free_ship_EN');
//echo $staticBlock->getTitle(); // block title
echo $staticBlock->getContent(); // block content
}
else {
$staticBlock = Mage::getModel('cms/block')->load('products_free_ship_EN');
//echo $staticBlock->getTitle(); // block title
echo $staticBlock->getContent(); // block content
}
?>
All is ok but the image is not appearing nor in themler backend nor in frontend site
http://test.kokomamas.it
image-in-cms-block-magento.jpg

Do you have any idea how to fix this?
Regards
Marco

Greetings, I am trying to use cms code block to insert CMS static blocks from magento. I created a static block in magento as you see here: !cms-image-in-block.jpg! then I inserted a cms code block in themler with this code: &lt;?php $store?&gt;getStore()->getCode(); if($Store == "it"){ $staticBlock = Mage::getModel('cms/block')->load('products_free_ship_IT'); //echo $staticBlock->getTitle(); // block title echo $staticBlock->getContent(); // block content } elseif($Store == "en"){ $staticBlock = Mage::getModel('cms/block')->load('products_free_ship_EN'); //echo $staticBlock->getTitle(); // block title echo $staticBlock->getContent(); // block content } else { $staticBlock = Mage::getModel('cms/block')->load('products_free_ship_EN'); //echo $staticBlock->getTitle(); // block title echo $staticBlock->getContent(); // block content } ?> All is ok but the image is not appearing nor in themler backend nor in frontend site http://test.kokomamas.it !image-in-cms-block-magento.jpg! Do you have any idea how to fix this? Regards Marco
Vote to pay developers attention to this features or issue.
3 Comments
Order By: Standard | Newest
Support Team
Support Team posted this 23 August 2016

Hi,

I've reproduced the issue and reported it to our developers.

In the meantime please open static clock in magento >> disable editor and change the image src from:
<img src="{{media url="wysiwyg/youtube.png"}}" alt="" />
to
<img src="wysiwyg/youtube.png" alt="" />
or so (depending of the location of the image folder - "wysiwyg")

Thank you,
Olivia

Hi, I've reproduced the issue and reported it to our developers. In the meantime please open static clock in magento >> disable editor and change the image src from: `<img src="{{media url="wysiwyg/youtube.png"}}" alt="" />` to `<img src="wysiwyg/youtube.png" alt="" />` or so (depending of the location of the image folder - "wysiwyg") Thank you, Olivia
marco.marino1971
54 Posts
marco.marino1971 posted this 23 August 2016

Hi Olivia,
also changing image source as you suggest, doesn't work.

I wait for developers to investigate, do I?

thanks
Marco

Hi Olivia, also changing image source as you suggest, doesn't work. I wait for developers to investigate, do I? thanks Marco
Support Team
Support Team posted this 24 August 2016

Hi,

I do not see changes. Must be Magento changes the image src back on saving.
If so let's wait for the fix from our developers.

Thank you,
Olivia

Hi, I do not see changes. Must be Magento changes the image src back on saving. If so let's wait for the fix from our developers. Thank you, Olivia
You must log in or register to leave comments