Hello everyone. I have some icon images in my loca...
# suitecommerce
s
Hello everyone. I have some icon images in my local img folder in themedevloper tool. I put all these image names in an array in home view file and iterated through that array and tried to get the urls using getAssetsThemepath and place them in the src attribute of img tag in home tpl file. But its not requesting for the url from local and showing no image. Can any one help me with this ?
@Steve Goldberg @Viraj Shinde @TheAntman @PabloZ. Can anyone suggest me somethin why this is happening ?
k
you'll need to deploy to see your images...
s
@kkennedydesign but some images are still in local system and i am getting correct img urls(when i don't iterate them).
k
check their urls....are they sourcing from production or local
s
@kkennedydesign yes they are requesting from production not local. I have attached an image below this question,you can see it
k
right - but the ones you said are correct - are you sure they are not being sourced from production
if so, you must have an issue with where you are using that method
s
But when i remove the #each condition directly call the name of the image,its working fine
I dont know where i am doing wrong.
k
maybe you have the wrong structure within your each
s
Sorry i am asking more. But did you see any error in that code ?
I placed log on this in template file too. Its returning the exact name as it is in that array
k
you should log in the each
its hard to say without running it
s
Yeah i did. As i said i am getting the correct names but i think there is an issue with the 'each' or the 'getassetsthemepath' function
k
seems so... not sure if you have to have a ../ before getassetsthemepath within an each
{{../getThemeAssetsPath this}} is what I mean....not sure
s
I will give a try