Creating a Module in the Office
Create New Module in the Office
-
Say the module is test, then create a folder called test inside the office folder of the website.
-
Then create a folder called "code" and one called "templates"
-
Inside the code folder create a php file, say TestModule.php.
This php file will be a class which extends WTModule. Need to use [ModuleName]Module for the class name.
-
Then inside the templates folder create your .wt files for use in the module.
-
Now go to tools Node Browser.
-
Then go to The Office Modules.
-
Now create a child node of type wtModules, which matches the module name.
-
Go to the Office Menu.
-
Create a node of type wtOfficeMenuItem which will show on the menu.
-
Then create a sub‐node of type wtOfficeMenuItem, and select the module to link too.
-
Refresh all frames, and then run the menu link, this will load the directory data into the module node you created. Check The Office Modules to verify this.