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

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 10-13-2006, 05:44 AM
Former Zimbran
 
Posts: 294
Default Adding an Application Button

I would like to add an Application Button, like the 4 that I already have. That is, like: Mail, Address Book, Calendar and Wiki.

There are two things, I would like to do:
1. Have an Application Button E.g. Business Website. On clicking the button, a hardcoded website appears where, either Mail or Address Book or Calendar or Wiki appear, now. That is, inside the Zimbra's UI.

2. Have another Application Button, on clicking which, I get a popup and the person enters a URL to any website. In this case, the website entered by the person appears in the same place as above.

The second one is like the Wikipedia zimlet, differences are:
a) the Wikipedia has an icon in overview panel, but here, it is an Application Button.
b) the Wikipedia requires name of item which is appended to the wikipedia URL. But here the full URL is the contents of the input field.

(How) can I do this?
__________________
Regards,

Chintan Zaveri
(Yet another ZIMBRAN!)

"Dhundhne par Bhagwan bhi ..."
Reply With Quote
  #2 (permalink)  
Old 10-13-2006, 06:27 AM
Former Zimbran
 
Posts: 294
Default

Ok, perhaps, it would be better to have this seperated into two parts:

1) Adding an Application Button, and
2) Using the area occupied by Email or Address Book or ... for displaying results of action.

(I did have a look at possible canvas types, but those are not what I want).

Most humans are lazy and they want to do things easily. My idea is to use Zimbra as a browser/container for websites... if it is quick.

I would like to check out how desired or addictive this can be.
__________________
Regards,

Chintan Zaveri
(Yet another ZIMBRAN!)

"Dhundhne par Bhagwan bhi ..."

Last edited by czaveri; 10-13-2006 at 06:30 AM.. Reason: I did have a look at possible canvas types, but those are not what I want
Reply With Quote
  #3 (permalink)  
Old 10-13-2006, 08:02 AM
Former Zimbran
 
Posts: 294
Default

Any idea why this won't work? Nothing happens when I click on "Wiki" in Zimlet Panel.

Code:
<zimlet name="com_mywebsite_wikkawakkawiki" version="0.1" description="Wiki"
	xmlns:html="http://www.w3.org/1999/xhtml">
		<resource>favicon.ico</resource>
		<includeCSS>com_mywebsite_wikkawakkawiki.css</includeCSS>
		<contentObject type="wiki">
		<onClick>
			<canvas type="window" width="800" height="600" />
			<actionUrl target="http://mywebsite.com/wiki/" method="get">
								<param name="wakka">HomePage</param>
						</actionUrl>
		</onClick>
	</contentObject>

	<zimletPanelItem label="Wiki" icon="WAKKA-panelIcon">
		<toolTipText>Click to open Wikka Wakka Wiki</toolTipText>
	</zimletPanelItem>
</zimlet>
__________________
Regards,

Chintan Zaveri
(Yet another ZIMBRAN!)

"Dhundhne par Bhagwan bhi ..."
Reply With Quote
  #4 (permalink)  
Old 10-13-2006, 01:19 PM
Former Zimbran
 
Posts: 294
Default

Ok, found the answer to the 3rd question but am still seeking answers to 1st and 2nd questions.

I had not created a JS file.

Code:
function Com_Mywebsite_WikkaWakkaWiki() {
}

Com_Mywebsite_WikkaWakkaWiki.prototype = new ZmZimletBase();
Com_Mywebsite_WikkaWakkaWiki.prototype.constructor = Com_Mywebsite_WikkaWakkaWiki;

// Called by the Zimbra framework when the panel item was double clicked
Com_Mywebsite_WikkaWakkaWiki.prototype.doubleClicked = function() {
		this.singleClicked();
};

// Called by the Zimbra framework when the panel item was clicked
Com_Mywebsite_WikkaWakkaWiki.prototype.singleClicked = function() {
		var props = [ "toolbar=yes,location=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=800,height=600" ];
		props = props.join(",");
		var url = "http://mywebsite.com/wiki/";
		window.open(url,props);
}
__________________
Regards,

Chintan Zaveri
(Yet another ZIMBRAN!)

"Dhundhne par Bhagwan bhi ..."
Reply With Quote
  #5 (permalink)  
Old 10-14-2006, 06:09 AM
Former Zimbran
 
Posts: 294
Default

It looks like I need to create a "new ZmApp" and "container" is the container.
Am I right?

Can I do this without creating a new App?

Is there any documentation for this? Like the Zimlets Whitepaper? ... To answer the questions:

Which files are compulsory?
What else is required?
How do you deploy an App?
... etc.


Can Zimlets access the "container"?
__________________
Regards,

Chintan Zaveri
(Yet another ZIMBRAN!)

"Dhundhne par Bhagwan bhi ..."
Reply With Quote
  #6 (permalink)  
Old 10-15-2006, 10:00 AM
Intermediate Member
 
Posts: 18
Default I am interested in doing the same thing

Keep me informed of your progress. I want to integrate a custom application into the code as well. If I cannot accomplish everything with a Zimlet. I will let you know how things are the further I get along, or if I find some good refernce material. At this point your Forum Thread is the most information I have seen on this though. I will follow up soon.
Reply With Quote
  #7 (permalink)  
Old 10-15-2006, 01:53 PM
Moderator
 
Posts: 927
Default

Somebody help this guy out! Chintan is doing great work for the community as a whole and if I could help I would, I dont know the answer to his question, but I will indeed try to find out (I fear by the time I do, someone will beat me to it, but I will learn much along the way).

Zimbra is a commercial AND an open source project. If you want the NE version, that's fine, but remember that lots of amazing ideas and features appear due to the dilligence of open source hackers trying to make things happen. You want an extra button here there or everywhere, then lets find out how to do it!

Ok, that;s my rally cry over with. I'll pick up my glass of wine in one hand and my javascript bible in the other and get back to work
Reply With Quote
  #8 (permalink)  
Old 10-15-2006, 02:06 PM
Former Zimbran
 
Posts: 294
Default

Dirk,

Thank-you so much for your kind words. I don't know what to say.

To be very honest, I am only trying to learn...

Really ... don't know what to say.

Thank-you,
__________________
Regards,

Chintan Zaveri
(Yet another ZIMBRAN!)

"Dhundhne par Bhagwan bhi ..."
Reply With Quote
  #9 (permalink)  
Old 10-15-2006, 02:21 PM
Intermediate Member
 
Posts: 18
Default The Underpinnings of ZCS

As I was working on this today, it seemed to me that we may not be able to do exactly what we want with the current architecture of ZCS.

Currently there is the zimlet feature, but what we are looking for is a application plug-in feature.

If this is going to take a major overhaul, then I will be the first to say. 'Let's do it.'

I will be happy to set up a project site and let's start hacking this thing out. We may have to redesign the current source code, and make a plug-in architecture. It would be somewhat of a redesign, but well worth it.

I have not spent enough time with ZCS to know the answers yet, but I have a lot of experience in J2EE application design & architecture and would love the challenge.
Reply With Quote
  #10 (permalink)  
Old 10-15-2006, 02:56 PM
Former Zimbran
 
Posts: 294
Default

I don't think this is as complex as that.

Have you looked at: /zimbra/trunk/ZimbraWebClient/WebRoot/js/zimbraMail

on SVN?

It contains the Applications that come along with Zimbra. Every directory is one app.

A thorough study of this will bring an understanding of how to create an application.

It's actually pure JavaScript.

So, like we created Zimlets, we might as well create Applications.
__________________
Regards,

Chintan Zaveri
(Yet another ZIMBRAN!)

"Dhundhne par Bhagwan bhi ..."
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.