<a href="#LINK#" class="txxNavLink">#TEXT#</a>
if that is the case, then you should change it to:
<a href="#LINK#" class="txxNavLink">
<img src="#IMAGE#" alt="#ALT#" height="#HEIGHT#" width="#WIDTH#" />#TEXT#</a>
where txxNavLink can be t1NavLink...t18NavLink or something else depending on which Apex theme you picked initially.
Now you are ready for setting the image (icon) URL to the desired value:
I use a custom application substitution string called "HOME" because i prefer to store the images on the webserver rather than in the Apex repository for better performance, but as i am not the owner of the webserver, i cannot create my own Apache aliases, so this is a sort of workaround.
In your case it can be sufficient to include either #WORKSPACE_IMAGE# or #APP_IMAGES# built-in substitution strings.
Once you have successfully tweaked the template, it's very likely that you'll have to tackle another little layout problem, because this navbar entry template definition now requires an icon for *every* navbar entry.
If in your navigation bar entries there is some text-only link, like the default Logout URL typically, you'll have to choose between one of two possibilities:
- keep the text only entry and tweak a couple of its attributes;
- find a suitable icon and use that instead of the text only link.
Hopefully i didn't forget anything else...
5 comments:
Kudos on figuring this out
I would like to suggest a correction: <img="#IMAGE#"... needs to be <img src="#IMAGE#"...
Excellent!
I've already updated the original post!
Thank you very much.
Flavio
I noticed that the iamges don't display in Internet Explorer unless you specify the height and width as well. They are ok in firefox
Keith,
although i can't double check this right now, i am not surprised, there is a long list of cross-browser issues and when it comes to M$, even cross-version...
That's why one should always try out a page on several browsers before shouting "hurray!", unless you are 100% sure that final users are using a specific browser.
You may find browsershots.org particularly useful to carry out cross browser tests.
Flavio
Great. That was exactly what I was looking for.
Post a Comment