-
Notifications
You must be signed in to change notification settings - Fork 4
Modules
*Note, this will work with 2.x and 3.x versions of Fork.
To create a module, you simply type the command ft module <modulename>.
This will generate the basic files for a module. Standard, there will always be created an index action.
In addition to this, it is also possible to automaticly create actions for this module. You can simply do this by adding the actions at the back of the command. For example: ft module <modulename> f=<action>,<action> b=<action>,<action>.
More information about actions is available in the actions wiki.
Since version 3.0 of Fork, it is possible to install modules. This uses a zip file to import the module. The Fork CLI Tool has an export function that generates the .zip file in the desired directory structure.
To export a module, you simply type ft export module <modulename>
If you want to see wich modules are installed, you simply type ft show modules. This will show the modules that are installed in the database. In the future there will come a check if all the needed files are present and such.
If you want information about a specific module, type ft show module <modulename>. This will show that modules installed actions and extras.