-
Notifications
You must be signed in to change notification settings - Fork 52
flag images not found #81
Comments
A) images (flags) not working in war mode: see issue "In war the URI to static images in plugins lacks the static URI prefix #78"
I have not tried this with a war deployment but in theory it should work. There is one more thing - there is no icon for the english language so if your locale is en_US for example you will not see the image. Several fixes exist - what I did is a simply copied the gb.png and duplicated it as en.png B) Glyph-icons do not work with the resources plug in 1.2.6, but they do work with 1.2.1 however it has been found that 1.2.1 presents a security risk. To use 1.2.6 you can use this hack:
This will make the glyphs work with the 1.2.6 resources plugin. (hehe - although what we are doing this way is kind of circumventing the resources plug in - i.e. we are not using the plug in to include the resources) Please note that the css above provides a url in the form of "fonts/**" what is assumed is that the base directory is /css under your web-app folder. Disclaimer: These are in no way the only or the best solutions - they simply worked for me. |
Hi, thanks for your information. I am trying to follow your steps to solve Glyph-icons issue as below:
[Update] |
Hi, I am no expert here but based on the info above it sounds like you are doing all the right things.
Either way this is an issue with the resources plugin rather than the Kickstart plugin. Also if you have security defined make sure you include something like this in your Config.groovy
|
No matter use defined module that depends on bootstrap & utils or use it standalone The only thing I make sure is fix-glyphicons appear in rendered source after : |
Did anyone come up with a good fix for this? UPDATE...I found this: Changing the includes line in config.groovy to add bootstrap fixed it: grails.resources.adhoc.includes = ['/images/', '/css/', '/js/', '/plugins/', '/bootstrap/**'] |
I follow the standard process to add the plugin successfully to a brand new project.
But when I start the project, error message appear:
......
ERROR resource.ResourceMeta - Resource not found: /images/flags/pt.png
ERROR resource.ResourceMeta - Resource not found: /images/flags/ru.png
ERROR resource.ResourceMeta - Resource not found: /images/flags/sv.png
And I can't find any "flags" directory in my project's \web-app\images
[Update]
It's my fault...
I am using GGTS's "Run as > Run on server" to run my Grails project and it seems not combine plugin content in packaged war. So images are lost.
When I changed to use "run-app" to run my project, the images were shown correctly. But....glyphicons are not! Still figure out the problem.
The text was updated successfully, but these errors were encountered: