Any help to figure it why it will not display the chart in the tab when it actually works as direct url?
Here are my settings as per 'Hello world" application:
The new file /application/controllers/GanttController.class.php:
<?php
class GanttController extends ApplicationController {
function __construct() {
parent::__construct();
prepare_company_website_controller($this, 'website');
}
function index() {
}
}
?>
the new entry in /public/assets/javascript/og/layout.js
og.panels.gantt = new og.ContentPanel({
title: lang('gantt'),
id: 'gantt-panel',
iconCls: 'ico-gantt',
refreshOnWorkspaceChange: true,
defaultContent: {
type: "url",
data: og.getUrl('gantt','index')
}
})
My tab list in /langage/en_us/lang.js:
/* tabs */
'overview': 'Overview',
'messages': 'Notes',
'contacts': 'Contacts',
'calendar': 'Calendar',
'tasks': 'Tasks',
'web pages': 'Web Links',
'documents': 'Documents',
'account': 'Account',
'administration': 'Administration',
'search': 'Search',
'webpage': 'Weblink',
'message': 'Note',
'gantt':'Gantt',
My icon call in /public/assets/themes/myTheme/stylesheets/general/layout.css:
.ico-gantt {
background: transparent url(../../images/16x16/Gantt.png) no-repeat scroll 0 3px !important;
}