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 05-10-2010, 07:27 AM
Senior Member
 
Posts: 73
Default Create Admin Extensions for Beginners

Hi

I try to create my own admin extension for the zimbra web UI. It seems that zimlets and admin extensions are created in a complete different way.

I have searched for some howto's and found:
Extending Admin UI - Zimbra :: Wiki
Admin UI Framework Guide - Zimbra :: Wiki

Sadly this two articles are much to high for me.
I need something descriped step by step or only a much smaler project ("Hello World", ...).

I don't understand why the (samba) article starts with an "ListView Class", ...

The first thing i would do is to add an node to the navigation panel.
In the Articles this is descriped very shortly. This code should to it:
Code:
Zambra.ovTreeModifier = function (tree)
{
	if (ZaSettings.SYSTEM_CONFIG_ENABLED)
	{
		this._sambaTi = new DwtTreeItem(this._configTi);
		this._sambaTi.setText("Samba Domains");
		this._sambaTi.setImage("ZimbraIcon");
		this._sambaTi.setData(ZaOverviewPanelController._TID, ZaZimbraAdmin._SAMBA_DOMAIN_LIST);

		if (ZaOverviewPanelController.overviewTreeListeners)
		{
			ZaOverviewPanelController.overviewTreeListeners[ZaZimbraAdmin._SAMBA_DOMAIN_LIST] = Zambra.sambaDomainListTreeListener;
		}
	}
}

if (ZaOverviewPanelController.treeModifiers)
{
	ZaOverviewPanelController.treeModifiers.push(Zambra.ovTreeModifier);
}

/*
// This section seems that only an event handler is added. Not important for the beginning
Zambra.sambaDomainListTreeListener = function (ev)
{
	if (this._app.getCurrentController())
	{
		this._app.getCurrentController().switchToNextView(this._app.getSambaDomainListController(), ZaSambaDomainListController.prototype.show, ZaSambaDomain.getAll(this ._app));
	}
	else
	{
		this._app.getSambaDomainListController().show(ZaSambaDomain.getAll(this ._app));
	}
}*/
The code has done nothing . I also have absolutly no idea why it does not work. Maybe i have to start some initialisation at first?

I only need an "Hello World" or something else for the beginning. If i have understood the major parts then rest would be much easier

yogg
__________________
Release 7.1.2_GA_3268.UBUNTU8_64 UBUNTU8_64 NETWORK edition.
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.