Installing Templates
To install a new template simply do the following,- Upload your template to the Templates directory of your OneCMS install
- Open config.php in the editor of your choice
- Find the $maintheme variable, for example,
$maintheme = "theme";
- Change the value within the quotations to the name of your theme directory. Example,
$maintheme = "newtheme";
- Save and upload the file
If all went well your site should now show your new theme!
Forum and Admin templates follow a similar scheme, the only difference is you upload the template files to either forum/templates or admin/templates and change the appropriate variable in config.php.
Future releases will attempt to simply theme selection.
Note: If you are still using an older version of OneCMS, installing a new theme will require you to manually replace code (ie, copy code from header.php to the header template) in the Templates admin area, you may need to create new templates if the theme requires it. This only applies to users that are running a version of OneCMS below 2.6.4
Creating New Templates
We encourage users create their own templates for OneCMS, if you will use them internally then you can draft them as you see fit. If you are developing or converting themes for community use then we have a few guidelines you should follow,- Themes should follow the scheme setup by the default "gamer" template in regards to required files, naming conventions, etc. Some features may not work properly without certain files, please keep this in mind.
- You are free to add your own custom files to the template package if they add functionality to the template that is otherwise not available with OneCMS.
- When you distribute themes ensure the actual theme is contained within a folder a long with all the required files, (ex, theme.zip contains a main folder called "theme", adjust names as you see fit)
Note: Template creators may give away their themes for free or charge for a license if they require. If you wish to sell your themes you may sell them on theme marketplaces such as Themeforest if required.