Adding a Template in Dijitals CMS
Let us assume that you have created your html templates and want to integrate them to dijitals CMS as a template.
Create a folder and copy your files to that folder (in this example I have named the template "newtemplate":
Copy the folder named "blocks" and files inside, which are all located in the default template in the "templates" folder to your new template folder you have created. So the new look of your file structure will be something like below.
Edit these files (inside the blocks folder) according to your template design. PHP tags in these files should stay for the system to work. You can edit the else html syntax anyway you like. You will see that it is very easy, just like editing normal html files.
Goto "Admin Panel" and click on the "Template List" link:
Here you can see the previously integrated templates. Click on the "Add New Template" link:
Here, the "Folder Name" field should be the same value with the folder you've created and copied your template files.
You can upload any image as a preview to the "Preview Image" field.
The "Friendly Name" can be any value that you want to name the template.
We have created our template and now we have to add "Template Pages" to use in our template. Click on "Add New Template Page" link:
Here, the "File Name" field should have the same value with the file you've created and copied to the template folder.
In this example, the filename of the html file is "page.php", so the "File Name" field should be "page":
