Reputation: 5968
I have an Apex application with a sidebar navigation menu like this :
Is possible to replace these font awesome icons by some png pictures ?
I have tried the put an image tag in the list item configuration but it didn't work :
<img src="#APP_IMAGES#fullheart.png"/>
The HTML generated is wrong :
<span class="fa <img src="myapp/r/13002/files/static/v1152/fullheart.png"/>"></span>
Thank you in advance.
Upvotes: 4
Views: 3385
Reputation: 5565
The generated HTML is wrong because you put an HTML code into a place where APEX engine expects to find a CSS class name.
To replace a standard icon with custom one, you need to do the following:
Put there a CSS code like this:
.my_icon {
background-image: url("#APP_IMAGES#fullheart.png");
}
my_icon
) into "Image/Class" property.If you use several page templates, you need to edit all of them.
Upvotes: 4