This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

Jason S
Jason S

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

BG78
BG78

Hi I dont know if i understood your question correctly. To call a media image use {{'yourimage.jpg'|media}}

Jason S
Jason S

Forgive me if I was not clear.

  1. I built a database called team with Builder with two columns, id, name, position and image.
  2. 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.
  3. So the problem I am having is how do I call the path.

Thank you for your help

BG78
BG78

Ok. The path in frontend should be {{team.image|media}}. (team => your model, image => your database field)

Jason S
Jason S
@BG78
( did not work.

Thank you

1-5 of 5

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.