Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Zimlets

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-23-2008, 09:16 AM
Member
 
Posts: 11
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
Project Contributor
 
Posts: 87
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
Member
 
Posts: 11
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
Project Contributor
 
Posts: 87
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
Member
 
Posts: 11
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
Member
 
Posts: 11
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
Member
 
Posts: 11
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
Active Member
 
Posts: 25
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
Active Member
 
Posts: 25
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
Zimlet Guru & Moderator
 
Posts: 288
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 Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.