Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
[SOLVED] RE: Adding custom icons to plugin portlet
Hello, all!
How could I add a new icon image to a plugin portlet such that I can use it with <liferay-ui:icon />? I tried to replicate the themes/images structure in the docroot/html directory of the plugin, but it did not work...
Also, would it be possible to do the same thing in a hook?
Thanks in advance!
How could I add a new icon image to a plugin portlet such that I can use it with <liferay-ui:icon />? I tried to replicate the themes/images structure in the docroot/html directory of the plugin, but it did not work...
Also, would it be possible to do the same thing in a hook?
Thanks in advance!
Just in case, I solved it: I put the icons on the portal theme, at the docroot/_diffs/image/common directory. When I put the "email.png" file there, I could use the <liferay-ui:icon image="email" /> tag.