Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
  #1 (permalink)  
Old 02-23-2008, 09:16 AM
u268 u268 is offline
Member
 
Join Date: Feb 2008
Posts: 11
u268 is on a distinguished road
Default how to define icon for zimlet

Hi all!

My zimlet is not showing icon

How to define icon for zimlet correctly?
Reply With Quote
  #2 (permalink)  
Old 02-23-2008, 12:08 PM
pbruna pbruna is offline
Contributor
 
Join Date: Feb 2006
Posts: 70
pbruna is on a distinguished road
Default

You have to declare the resource in the com_zimbra_zimletname.xml file:

Code:
<includeCSS>zimlet.css</includeCSS>
<resource>zimleticon.png</resource>
and the add the definition in the zimlet.css

Code:
.ImgZIMLETNAME-panelIcon {
 background: url("zimleticon.png") no-repeat 0 0;
 width: 18px;
 height: 18px;
 overflow: hidden;
}
__________________
Patricio Bruna
http://www.it-linux.cl/pbruna
Reply With Quote
  #3 (permalink)  
Old 02-24-2008, 02:25 AM
u268 u268 is offline
Member
 
Join Date: Feb 2008
Posts: 11
u268 is on a distinguished road
Question

Still not working ((
That thing makes me mad...


Code:
<zimlet name="com_zimbra_ppol" version="1.0" description="PPOL integration zimlet">

    <includeCSS>ppol.css</includeCSS>
    <resource>ppol.gif</resource>

    <userProperties>
        ...
    </userProperties>

    <zimletPanelItem label="PPOL" icon="PPOL-panelIcon">
        
        ....

    </zimletPanelItem>

</zimlet>
and here CSS:

Code:
.ImgPPOL-panelIcon {
  background: url("ppol.gif") no-repeat 0 0;
  width: 16px;
  height: 16px;
  overflow: hidden;
}
Please HELP!
Reply With Quote
  #4 (permalink)  
Old 02-24-2008, 04:08 AM
pbruna pbruna is offline
Contributor
 
Join Date: Feb 2006
Posts: 70
pbruna is on a distinguished road
Default

Had you restarted Tomcat or Jetty after made the changes?
Had you deleted your browser cache and refresh the page?

If still dont working, could you post or send me your zimlet to see if i can help?

bye
__________________
Patricio Bruna
http://www.it-linux.cl/pbruna
Reply With Quote
  #5 (permalink)  
Old 02-24-2008, 04:35 AM
u268 u268 is offline
Member
 
Join Date: Feb 2008
Posts: 11
u268 is on a distinguished road
Default

Later today I will try to restart ZCS's webcontainer once customer will give me needed permissions
Reply With Quote
  #6 (permalink)  
Old 02-26-2008, 02:17 AM
u268 u268 is offline
Member
 
Join Date: Feb 2008
Posts: 11
u268 is on a distinguished road
Unhappy

Today I restarted ZCS but did not see any changes: zimlet remains without specified icon, double-clicking on zimlet expands user properties window having old control which was removed from XML declaration.

How do I clear caches?

ZCS 5.0
Reply With Quote
  #7 (permalink)  
Old 02-28-2008, 05:34 AM
u268 u268 is offline
Member
 
Join Date: Feb 2008
Posts: 11
u268 is on a distinguished road
Default

I had to create new zimlet with other name and move all contents to new one. Then it works fine.

Seems like there is some ugly thing with zimlet data caches in zimbra
Reply With Quote
  #8 (permalink)  
Old 05-19-2008, 01:38 AM
morten morten is offline
Member
 
Join Date: Apr 2008
Posts: 12
morten is on a distinguished road
Default Same problem

I have exactly the same problem with the icons. I have done everything like it should and still it does not show up.

When I use the _dev folder it suddenly shows the zimlet correctly.

I also have a problem with the userproperties default editor which does not change if I deploy a new version of the zimlet (even after increasing the version number)

any ideas?
Reply With Quote
  #9 (permalink)  
Old 05-21-2008, 02:02 AM
morten morten is offline
Member
 
Join Date: Apr 2008
Posts: 12
morten is on a distinguished road
Default

I have checked it a bit more and it appears to be a browser problem.
I have the following setting:

On the zimlet panel I have three zimlets:
1. the standard Yahoo local zimlet
2. I installed the SMS zimlet as an example and test
3. My own zimlet

The following happens in Firefox (v. 2 on windows and v3beta5 on Ubuntu):
When I deploy my zimlet normally with the Zimbra admin as a zip, I do get an icon for 1 and 2 but not for 3
When I deploy my zimlet in the _dev directory I get an icon for 1 and 3 but not for 2!!!

When we check this with Internet Explorer on windows all icons show up correctly!
I have tried to see what happens with the page info and the available resources, but this is a lost case with all the ajax code loading stuff.

Does anybody know what is going on, does FF have problems with the style definitions for the icons??
Reply With Quote
  #10 (permalink)  
Old 05-21-2008, 09:03 AM
tdesorbaix tdesorbaix is offline
Senior Member
 
Join Date: Apr 2007
Location: Paris, France
ZCS Version: Release 5.0.4_GA_2101.RHEL4_20080321132418 CentOS4 NETWORK edition
Posts: 83
tdesorbaix is on a distinguished road
Default

I have the same problem with the property editor.
Can we have please a confirmation from someone if there is a cache or something like this somewhere?

For the icons, if you use icons already presents in zimbra :
Forget the css file and the <ressource>, just put the name of the icon and it work. Exemple :
Code:
<zimlet name="com_zimbra_test" version="1.0" description="test zimlet">
    <zimletPanelItem label="Test" icon="Inbox">  
        ....
    </zimletPanelItem>
</zimlet>
This will give you a zimlet with icon of the Inbox folder.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Change Zimlet Icon?? kirme3 Zimlets 3 01-09-2008 08:10 AM
Can you define what address book a user sees by default with Class's of Service duran.goodyear Administrators 7 11-09-2007 12:12 PM
4.04 Upgrade - Icon problems dwill Installation 10 11-28-2006 12:23 AM
Zimbra Icon bellzerr Administrators 1 09-22-2006 03:37 PM
DnD Icon vanishes if setVirtual() is invoked MWaltman Developers 2 04-11-2006 01:26 PM


freshmeat.net sourceforge.net The best Java IDE



 

Search Engine Optimization by vBSEO 3.0.0