Adding images to web UI custom theme
I tried for Web UI Theme customization , I want to insert image into the theme but when I deployed theme on server the image not displayed but Its working on locally.
Can anyone tell me where to store image on server side.? Here is my HTML image tag code img src="../img/logo.jpg" width="120" height="60" |
Accepted answer
The proper way to get the resource url is via javascript call.
jazz.util.theming.themeFileUrl("templates/ThemeWidget.html")
I'll update the documentation to better present that specific use case.
My recommendation is to add a JavaScript file to the theme that has the following code :
Note that the url passed to that method is a path relative to the root of the theme.
Unfortunately when creating the theme, you don't currently have enough information to know where the theme is located. In particular, several of our applications proxy theme requests back to the JTS, which may be deployed on another machine.
Ralph Schoon selected this answer as the correct answer
Comments
David Boyer
commented Sep 14 '12, 12:12 p.m.
| edited Aug 19 '16, 9:48 a.m.
FORUM MODERATOR / JAZZ DEVELOPER
The documentation has been updated on the Wiki here |
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.
Comments
Let me know the location where uploaded themes are stored.
Deleting this comment