Creating a Module in the Office

Create New Module in the Office

  1. Say the module is test, then create a folder called test inside the office folder of the website.
  2. Then create a folder called "code" and one called "templates"
  3. 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.
  4. Then inside the templates folder create your .wt files for use in the module.
  5. Now go to tools Node Browser.
  6. Then go to The Office Modules.
  7.  Now create a child node of type wtModules, which matches the module name.
  8. Go to the Office Menu. 
  9. Create a node of type wtOfficeMenuItem which will show on the menu. 
  10. Then create a sub‐node of type wtOfficeMenuItem, and select the module to link too.
  11. 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.