I want to change the icon in liferay portlet. How can I change the icon and what is the use of icon.png in liferay portlet?
/PORTLET-NAME/
build.xml
/docroot/
/css/
/js/
/WEB-INF/
/src/ (not created by default)
liferay-display.xml
liferay-plugin-package.properties
liferay-portlet.xml
portlet.xml
web.xml
icon.png
view.jsp
OR As Olaf Kock suggested
<icon>/newicon.png</icon>
Better option is to create a new theme with pluginsSDK, (copy the classic theme for starting) and then replace the portal favicon in the new theme folder with new one.
Alternatively, add the following code in portal-ext.properties
file:
theme.shortcut.icon=your_new_icon.ico
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.