https://antibiotiqueaugmentin.com/surdosage-augmentin-bebe/

Add pictures in Card view

  • hotspot
  • hotspot's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 6 months ago #3002

Hi All

How can I add pictures in the database?
I don't have enough experiance in there.

Thank you in advance for your help.

Please Log in or Create an account to join the conversation.

More
9 years 6 months ago #3011

Hi,

You don't have to actually add pictures to the database. What you need to do is to add an html tag to your database with defined src attribute pointing to the actual image location.

The image field in your database will than contain

<img src="/path/to/your/image/onyour/server/image_file.img" >

Please Log in or Create an account to join the conversation.

More
9 years 3 days ago #3147

I used the following HTML in a table field to try and fix the image frame size

<img src="/path/to/your/image/onyour/server/image_file.img" height="225" width ="150" >

The width of pictures seems to be fixed at 150 px but the height varies considerably and is definitely not fixed at 225 px. Can you explain why the height is not fixed?

John

Please Log in or Create an account to join the conversation.

More
9 years 6 hours ago #3149

I don't know. Maybe your template iverrides height or something like this. Maybe you can use style property instead of height and width.

<img src="/path/to/your/image/onyour/server/image_file.img" style="width:150px;height:225px;" >

Last edit: 9 years 6 hours ago by tomaz.

Please Log in or Create an account to join the conversation.

More
8 years 11 months ago #3154

Hi

Thanks for the suggestion to use the style property. It worked fine.

Thanks for your help.

Best Wishes

John

Please Log in or Create an account to join the conversation.

Moderators: tomaz
Time to create page: 0.258 seconds

Contact Us

Contact us on Discord

Contact us on Facebook