How to display an image in a bootstrapcomponent label

Questions and answers on designing your Servoy solutions, database modelling and other 'how do I do this' that don't fit in any of the other categories

How to display an image in a bootstrapcomponent label

Postby c.groefsema » Mon Oct 28, 2019 1:04 pm

Hi everyone,

I must replace a logo on a form. The current logo is displayed in a bootstrapcomponent label.
In this label, I cannot find the reference to the image that is displayed - let alone modify this reference.
I have placed the new logo in a .../medias/images folder where other images are located that the application uses, and that somehow caused the medias.obj file to be updated with a reference to the image. Am I to use this file somehow?

Any help here will be greatly appreciated!

Kind regards,
Coos
User avatar
c.groefsema
 
Posts: 26
Joined: Fri Feb 22, 2019 12:40 pm

Re: How to display an image in a bootstrapcomponent label

Postby mboegem » Mon Oct 28, 2019 7:50 pm

Hi Coos,

It's a little bit hard to tell where the image is referenced.
I'm sure you already had a look at the label properties and were not able to find it.

Please have a look in the referenced style class(es), within the referenced stylesheet. This is a good 'hiding place' for image references ;-)
If this is not the case, maybe the page inspector of your browser can be of some assistance.

Hope this helps.
Marc Boegem
Solutiative / JBS Group, Partner
• Servoy Certified Developer
• Servoy Valued Professional
• Freelance Developer

Image

Partner of Tower - The most powerful Git client for Mac and Windows
User avatar
mboegem
 
Posts: 1742
Joined: Sun Oct 14, 2007 1:34 pm
Location: Amsterdam

Re: How to display an image in a bootstrapcomponent label

Postby c.groefsema » Tue Oct 29, 2019 4:59 pm

Hi Marc,

Thanks for replying!

"I'm sure you already had a look at the label properties and were not able to find it."
That is an accurate description of what happened. ;)

I wondered... could you tell me how you'd go about placing a picture on a form? I'll just delete the label and create the entire thing anew then.
For I haven't got a clue and indeed, Servoy hides this information very well... :(

Thanks in advance!
User avatar
c.groefsema
 
Posts: 26
Joined: Fri Feb 22, 2019 12:40 pm

Re: How to display an image in a bootstrapcomponent label

Postby derk.hulshof » Tue Nov 12, 2019 10:50 am

Hi Coos,

I am loading my image through HTML in a component. While it is in my Media / image (subfolder) folder
You can use HTML in your label component and check the displaytags options

The link I use is
<img src="resources/fs/{solutionsname}/image/{filename}" />

Sometimes it works also with media:/// , but never tried this.


Hopefully this is helpfull.
derk.hulshof
 
Posts: 108
Joined: Tue Dec 03, 2013 9:18 am
Location: Netherlands


Return to Programming with Servoy

Who is online

Users browsing this forum: Google [Bot] and 13 guests