How To Create Custom Field Background-images in magento Backend.? Set Background Directly in Only Change Images So set Directly in All page Backend Set background-images.

  • can you explain in details? background images used in forntend pages or any other pages?
    – Abdul
    Feb 10, 2016 at 4:47
  • thenks for replay Feb 10, 2016 at 4:58
  • i have set Background images in frontend only one Cilck Feb 10, 2016 at 4:59

1 Answer 1


Following code i have set backgrounds all page:-

$article = Mage::getModel('imageuploader/upload')->load(['id']);
$image_collection = Mage::getModel('imageuploader/upload')->getCollection()
    ->addFieldToFilter('status', array('eq' => '1'));
foreach ($image_collection as $image):
$imageUrl = Mage::getBaseUrl('media') . $image->getData('img');

style sheet code:-

.wrapper {background-image: url(<?php echo $imageUrl; ?>)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.