DMXzone Database Connector PHP Support Product Page
Answered
How to show images with repeat regions
Asked 23 Aug 2017 07:06:40
1
has this question
23 Aug 2017 07:06:40 Jesper Follin posted:
I have uploaded a image and stored its name in the database. I have created a query. I have created a repeat region. Everything else in the query is showing up fine, but i have a problem getting the image to show. Don´t know how to get the {{img}} inside the <img src="img/{{img}}"> to work. {{img}} = image_1.jpg
Replies
Replied 23 Aug 2017 07:28:34
23 Aug 2017 07:28:34 Teodor Kuduschiev replied:
Hello,
The expression you are using is wrong. You should select the image, then click dynamic attributes > image > image source and bind your value there.
The expression you are using is wrong. You should select the image, then click dynamic attributes > image > image source and bind your value there.
Replied 23 Aug 2017 12:52:14
23 Aug 2017 12:52:14 Jesper Follin replied:
Hi,
And by selecting the image, you mean selecting the "img src" in the code?
And thanks for the quick reply!
And by selecting the image, you mean selecting the "img src" in the code?
And thanks for the quick reply!
Replied 23 Aug 2017 12:53:53
23 Aug 2017 12:53:53 Teodor Kuduschiev replied:
By selecting the image i mean selecting the <img /> tag either in code view or in design view.
Replied 23 Aug 2017 12:55:57
23 Aug 2017 12:55:57 Jesper Follin replied:
Big Thanx for the quick and great help Teodor!
Replied 23 Aug 2017 18:37:22
23 Aug 2017 18:37:22 Jesper Follin replied:
One last thing...
How do i get it to grab the image inside my img folder?
Now it looks like this: dmx-bind:src="img", where "img" is the name.jpg.
How do i add the path to where the image is. (in my img folder)
How do i get it to grab the image inside my img folder?
Now it looks like this: dmx-bind:src="img", where "img" is the name.jpg.
How do i add the path to where the image is. (in my img folder)