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
liferay-ui:icon image attribute
Hello,
Can anyone help wit a link or probable list of possible values of liferay-ui image attribute?
Can anyone help wit a link or probable list of possible values of liferay-ui image attribute?
Nick Piesco, modified 12 Years ago.
RE: liferay-ui:icon image attribute
(Answer)
New Member
Posts: 8
Join Date: 7/9/12
Recent Posts
Too many to list here, but the icons live in /[your-theme-name]/images/common/... just browse through, pick the one you want, and use the filename in the '<liferay-ui:icon>' tag. For example:
would give you /[your-theme-name]/images/common/edit.png.
Hope this helps!
<liferay-ui:icon image="edit" />would give you /[your-theme-name]/images/common/edit.png.
Hope this helps!
Thanks Nick
I'd like to add that you can also use relative paths, like:
Which will display the icon: /[your-theme-name]/images/language/en_US.png
Tested in Liferay 6.1.20 EE.
<liferay-ui:icon image="../language/en_US" />Which will display the icon: /[your-theme-name]/images/language/en_US.png
Tested in Liferay 6.1.20 EE.