This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
Hi,
I am new to using October CMS which, so far it's great. But I am trying to figure out how to use media image section. I created an photo field with builder. I selected the media finder, save it. I instert the image but nothing show. Can someone help please.
Thank you
img src="{{'/storage/app/media/photos' ~ record.photo }}"/
Last updated
Hi I dont know if i understood your question correctly. To call a media image use {{'yourimage.jpg'|media}}
Forgive me if I was not clear.
- I built a database called team with Builder with two columns, id, name, position and image.
- I added controls for name, position and image. But for the image I used the Media Finder instant of File upload control. So when I click the image icon I can go through Media to grab the image.
- So the problem I am having is how do I call the path.
Thank you for your help
Ok. The path in frontend should be {{team.image|media}}. (team => your model, image => your database field)
1-5 of 5