Foros de discusión
RE: custom portlet icon
Kadir BASOL, modificado hace 12 años.
custom portlet icon
Junior Member Mensajes: 91 Fecha de incorporación: 10/08/10 Mensajes recientes
Hi , i m trying to override default icon on default portlets that comes with liferay.
But i cant do it.
I need to replace some portlet icons ,
i put images , icons folder to override files but all my actions failed.
Whats wrong ?
But i cant do it.
I need to replace some portlet icons ,
i put images , icons folder to override files but all my actions failed.
Whats wrong ?
José Manuel Domínguez Romero, modificado hace 12 años.
RE: custom portlet icon
Regular Member Mensajes: 219 Fecha de incorporación: 3/02/10 Mensajes recientes
Hi Kadir,
Have you read these links?
http://rajeevalochanabr.wordpress.com/2011/05/19/change-liferay-portlet-title-icon/
http://www.liferay.com/es/community/forums/-/message_boards/message/586593
Finally, you can try with Javascript. The icon is this HTML code result:
If you get this img node and change the src attrib...
I hope it's useful to you.
Regards
Have you read these links?
http://rajeevalochanabr.wordpress.com/2011/05/19/change-liferay-portlet-title-icon/
http://www.liferay.com/es/community/forums/-/message_boards/message/586593
Finally, you can try with Javascript. The icon is this HTML code result:
<img class="icon" src="/html/themes/classic/images/spacer.png" alt="Sign In" title="Sign In" style="background-image: url('/html/icons/.sprite.png'); background-position: 50% -480px; background-repeat: no-repeat; height: 16px; width: 16px;">
If you get this img node and change the src attrib...
I hope it's useful to you.
Regards
Dhrutika Parekh, modificado hace 12 años.
RE: custom portlet icon
Expert Mensajes: 435 Fecha de incorporación: 9/02/09 Mensajes recientes
Hi,
To get custom portlet icons ,there are two ways.
1. In ext environment,you can overwrite your new image icon -- \ext-web\docroot\html\icons
i.e if you want to replace message board icon,place your new image name as message_boards.png
2. 2nd way is, you can overwrite liferay-portlet.xml
i.e <portlet-name>8</portlet-name>
<icon>/html/icons/uricon.png</icon>
Regards,
Dhrutika Parekh
To get custom portlet icons ,there are two ways.
1. In ext environment,you can overwrite your new image icon -- \ext-web\docroot\html\icons
i.e if you want to replace message board icon,place your new image name as message_boards.png
2. 2nd way is, you can overwrite liferay-portlet.xml
i.e <portlet-name>8</portlet-name>
<icon>/html/icons/uricon.png</icon>
Regards,
Dhrutika Parekh