Jump to content

Calling images uploaded through cms


AshleyIgnatiusYeo

Recommended Posts

Hi 

 

Here's the scenario.

 

I have a "promotion" cms category with multiple promotions being created as individual pages. The default promotion page on the store front is controlled by a module showing a listing of the current promotions with a small thumbnail image. What I'm trying to do is to dynamically call the images by matching the meta name of the promotion to the image. 

 

e.g. 

Promotion Meta Name == promo 1

 

in my .tpl file I'm calling <img src="{$img_ps_dir}cms/banner-{$Item.link_rewrite}.jpg" />, where "Item" is the item in my foreach loop. This gives me <img src="https://shop-name/img/cms/promo-1.jpg" /> which is the correct image path. But on the store front nothing loads? 

 

I'm trying to use an image in my "img/cms" directory which has been uploaded through the backoffice cms. When I upload the image directly through FTP it works but not when I upload. 

 

Please let me know if I can provide any more information to better describe my issue? Greatly appreciate any help rendered. 

 

Thanks!

Edited by AshleyIgnatiusYeo (see edit history)
Link to comment
Share on other sites

  • 3 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...