Page 1 of 1

Adding a new module to TimeTrex

Posted: Fri Sep 09, 2011 2:32 am
by ehajj
Hello,

I am doing a customization to Timetrex. There is a new requirement that can't be done with the actual modules and therefore I need to create a new module from scratch. I am facing some issues with this.

First, I can't create a menu for the new module. I want to add it under Admin, but can't seem to make the menu item appear although it's added in the /template/menu.tpl file.

Second, I duplicated the folder I need under /interface and renamed the files there and did the customization to the front-end in the /template folder. Now when I change the class name ($cdf = TTnew( 'ClassName' );) I get a 500 internal page error although I created the with the class name under /classes/modules/classfolder.

Any help would be appreciated.

Re: Adding a new module to TimeTrex

Posted: Fri Sep 09, 2011 7:48 am
by shaunw
We would need to see examples of how you modified menu.tpl to be of any assistance there.

As for the internal error, you need to add the class name and file name mapping to the includes/ClassMap.inc.php file.

Re: Adding a new module to TimeTrex

Posted: Fri Sep 09, 2011 8:16 am
by ehajj
I have attached the tpl file zipped.

I will try to do what you told me and get back to you if I face any error.