Skip to main content
deleted 11 characters in body
Source Link
sv3n
  • 11.7k
  • 7
  • 41
  • 73

I want get path of image of cms-block and here is code:

$yourPageIdentifier   = 'home_banner';
            $cmsPage              = Mage::getModel('cms/block')->setStoreId($store_id)->load($yourPageIdentifier,'identifier');
            $array['title']       = $cmsPage->getTitle();
            $array['identifier']  = $cmsPage->getIdentifier();
            $array['content']     = htmlentities($cmsPage->getContent());

Help me get this.

I want get path of image of cms-block and here is code:

$yourPageIdentifier   = 'home_banner';
            $cmsPage              = Mage::getModel('cms/block')->setStoreId($store_id)->load($yourPageIdentifier,'identifier');
            $array['title']       = $cmsPage->getTitle();
            $array['identifier']  = $cmsPage->getIdentifier();
            $array['content']     = htmlentities($cmsPage->getContent());

Help me get this.

I want get path of image of cms-block and here is code:

$yourPageIdentifier   = 'home_banner';
$cmsPage              = Mage::getModel('cms/block')->setStoreId($store_id)->load($yourPageIdentifier,'identifier');
$array['title']       = $cmsPage->getTitle();
$array['identifier']  = $cmsPage->getIdentifier();
$array['content']     = htmlentities($cmsPage->getContent());

Help me get this.

how to get Get only the image path from cms block?

I want get path of image of cms-block and here is code:

$yourPageIdentifier   = 'home_banner';
            $cmsPage              = Mage::getModel('cms/block')->setStoreId($store_id)->load($yourPageIdentifier,'identifier');
            $array['title']       = $cmsPage->getTitle();
            $array['identifier']  = $cmsPage->getIdentifier();
            $array['content']     = htmlentities($cmsPage->getContent());

Help me get this.

how to get only the image path from cms block?

$yourPageIdentifier   = 'home_banner';
$cmsPage              = Mage::getModel('cms/block')->setStoreId($store_id)->load($yourPageIdentifier,'identifier');
            $array['title']       = $cmsPage->getTitle();
            $array['identifier']  = $cmsPage->getIdentifier();
            $array['content']     = htmlentities($cmsPage->getContent());

Get only the image path from cms block?

I want get path of image of cms-block and here is code:

$yourPageIdentifier   = 'home_banner';
            $cmsPage              = Mage::getModel('cms/block')->setStoreId($store_id)->load($yourPageIdentifier,'identifier');
            $array['title']       = $cmsPage->getTitle();
            $array['identifier']  = $cmsPage->getIdentifier();
            $array['content']     = htmlentities($cmsPage->getContent());

Help me get this.

$yourPageIdentifier = 'home_banner'; $cmsPage = Mage::getModel('cms/block')->setStoreId($store_id)->load($yourPageIdentifier,'identifier'); $array['title'] = $cmsPage->getTitle(); $array['identifier'] = $cmsPage->getIdentifier(); $array['content'] = htmlentities($cmsPage->getContent());

$yourPageIdentifier   = 'home_banner';
$cmsPage              = Mage::getModel('cms/block')->setStoreId($store_id)->load($yourPageIdentifier,'identifier');
            $array['title']       = $cmsPage->getTitle();
            $array['identifier']  = $cmsPage->getIdentifier();
            $array['content']     = htmlentities($cmsPage->getContent());

$yourPageIdentifier = 'home_banner'; $cmsPage = Mage::getModel('cms/block')->setStoreId($store_id)->load($yourPageIdentifier,'identifier'); $array['title'] = $cmsPage->getTitle(); $array['identifier'] = $cmsPage->getIdentifier(); $array['content'] = htmlentities($cmsPage->getContent());

$yourPageIdentifier   = 'home_banner';
$cmsPage              = Mage::getModel('cms/block')->setStoreId($store_id)->load($yourPageIdentifier,'identifier');
            $array['title']       = $cmsPage->getTitle();
            $array['identifier']  = $cmsPage->getIdentifier();
            $array['content']     = htmlentities($cmsPage->getContent());
Source Link
Loading