-
Notifications
You must be signed in to change notification settings - Fork 4
Themes
*Note, this will work with 2.x and 3.x versions of Fork.
To create a new theme, you simply type ft theme <themename>.
This will copy the files of the standard Fork theme, Triton. It will also insert the required database information so the theme is already visible in the backend.
Ofcourse, it would be handy if you could copy some modules so you don't have to do this manually. For example, you need some extra styling on a module. Therefore you should place the module files in the theme folder. To do this, you type ft theme copy <modulename>.
This will create a new directory with all the template files in your theme directory. You can also copy multiple modules at once, or copy all the modules.
For example: ft theme copy blog,profiles or ft theme copy all.
As of Fork version 3.0 it is possible to install themes via the Theme installer. There is a function build in the Fork CLI Tool to export your template so it can be easily transfered to other websites.
The theme installer uses a xml file to create the database information. If you provide this, this file will be used. If not, the file will be created via the database information and the settings you've provided.
To export a theme you simply run the command ft export theme <themename>.