Adding a new module to TimeTrex

Discussion for TimeTrex open source community developers.
Locked
ehajj
Posts: 2
Joined: Fri Sep 09, 2011 2:23 am

Adding a new module to TimeTrex

Post 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.
shaunw
Posts: 7839
Joined: Tue Sep 19, 2006 2:22 pm

Re: Adding a new module to TimeTrex

Post 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.
ehajj
Posts: 2
Joined: Fri Sep 09, 2011 2:23 am

Re: Adding a new module to TimeTrex

Post 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.
Attachments
menu.zip
(4.24 KiB) Downloaded 552 times
Locked