This topic shows how to create a Group Template and install it to be used to create new Groups.
A Group Template has the file extension of .drivegt
Ensure the Source Root Folder is high enough in the folder structure that it encompasses all relevant files and folders.
This will ensure that all necessary files with their correct references will be included in the template.
For example the image below shows Project A, Project B and Project C as the Projects to be used as a template.
These are located as a sub folder of a Projects folder, which is a sub folder of the Source Root Folder.
This Source Root Folder is high enough in the folder structure to encompass all required folders.
Copy the XML below into this file.
Change the text Group Template to be the name required to be displayed in the template chooser.
Save and close.
<?xml version="1.0" encoding="UTF-8"?> <template Name="Group Template" />
Copy the html below into this file.
Change the text Group Template and Group Template Description to be the text required to be displayed when the template is selected in the template chooser.
Save and close.
<!DOCTYPE html> <html lang="en" xmlns="http://www.w3.org/1999/xhtml"> <head> <meta charset="utf-8" /> <title>Group Template Title</title> <style type="text/css"> html { font-family: 'Segoe UI', Verdana, Arial; font-size: 12px; } h1 { color: #3f5f7f; font-size: 12px; } </style> </head> <body> <h1>Group Template</h1> <p>Group Template Description</p> </body> </html>
Images can be included in the index.html file by encoding them to base64.
Use a Web Service such as Base64 Image to convert an image to base64.
Once you have the base64 code of the image:
<body> <h1>Group Template</h1> <p>Group Template Description</p> <img src="INSERT BASE64 HERE" /> </body>
Ensure the quotes around the base64 code are included.
If a template is not displaying in DriveWorks after being installed, check that the installer or version of DriveWorks is the one currently being used, as templates are version specific.
If there is an error in the templates data it will not display.
users selected.
To uninstall a Group Template please follow the steps below:
The deleted Group Template will now be uninstalled and no longer available.