Skip to main content
7 events
when toggle format what by license comment
May 30, 2016 at 4:04 comment added Anshu Mishra Basically file_exists check needs to be implemented before showing the image.
May 30, 2016 at 4:04 comment added Anshu Mishra I am not sure if the syntax is 100% correct as I didn't executed the code on my machine. I just used the above code and provide you the logic.
May 27, 2016 at 12:35 comment added Ramya Is this syntax correct? $imagePath = Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA)."wysiwyg/feature/detail/".trim($value).".png ; This is the line affecting the rest.
May 27, 2016 at 12:33 comment added Anshu Mishra May be I did some mistake in the syntax as I haven't checked the code.
May 27, 2016 at 12:32 comment added Anshu Mishra Basically before img tag, you need to place a file_exists check on the img src Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA)."wysiwyg/feature/detail/".trim($value).".png'
May 27, 2016 at 12:25 comment added Ramya When I put the above code rest of the code is changing to grey color and not working. Please help
May 27, 2016 at 12:17 history answered Anshu Mishra CC BY-SA 3.0