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 Display Modes
  #1 (permalink)  
Old 02-18-2009, 03:54 AM
Active Member
 
Posts: 49
Default contentObject highlighting in multiple sections

Hi there again,

I'm trying to figure out how to write a zimlet that does matchOn a regex both in mail and in the phonebook. Unfortunately, I've just been able to make it work, but it's now missing the highlighting functionality.

I mean, right now to make my contextmenus work in both areas (mail and phonebook) I had to specify
Code:
<contentObject type="phone">
 [...]
</contentObject>

<contentObject>
 [...]
</contentObject>
But this breaks the highlighting functionality. That is, you don't see it blue-colored and underlined!

If you separately specify (and removing the other section):
Code:
<contentObject type="phone">
 [...]
</contentObject>
or
Code:
<contentObject type="email">
 [...]
</contentObject>
you get a perfectly working zimlet either on the phonebook or the email section only!

By doing the following, it won't work anymore, or it works badly, or... (didn't keep track of each behavior, frankly....):
Code:
<contentObject type="phone">
 [...]
</contentObject>

<contentObject type="email">
 [...]
</contentObject>
or just many other combos, like removing the types, or inventing a new one (such as wikipedia did -by the way, thought that you are supposed to use a built-in one...), or specifying a type in the second etc etc.

Useless to say, documentation doesn't say much about this...

And I couldn't find any zimlet that worked the same way I'm looking for...!


In other words, I tried almost everything! (ok, took me about 10 minutes, but victim-mode enhances my chances of being considered... ;-)

...
Reply With Quote
Reply


Thread Tools
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.

Zimbrablog.com




 

Search Engine Optimization by vBSEO 3.1.0