The quickest and easiest method to create a custom module is to base it on an existing module supplied by DriveWorks. Browse through the existing modules (as detailed above) to find a module that is suitable for modification.
Custom Skins and Modules
When presenting Skins or Modules in the application DriveWorks will present all items in the folder
%ProgramData%\DriveWorks\[version]\Live\Themes\Web\content\custom folder
and then from the folder
%ProgramData%\DriveWorks\[version]\Live\Themes\Web\content\system folder
Items in the \system folder are maintained by DriveWorks (for future releases) and should NOT be modified.
Items in the \custom folder will not be overwritten by future releases of DriveWorks, therefore any customization will be available when future releases are installed.
You can create your own Modules which will then be available from Edit mode on each web page by following the steps below:
Modules folder Location
The location of the default Modules that are installed when DriveWorks is installed is:
Windows 7, Windows 8, Windows 10 | |
---|---|
Folder Name | Modules |
Location | %PROGRAMDATA%\DriveWorks\[Version Number]\Live\Themes\Web\content\system\modules |
Example | C:\ProgramData\DriveWorks\[Version Number]\Live\Themes\Web\content\system\modules |
Description | DriveWorks Live Modules Files are stored here **DO NOT MODIFY** |
Modules folder Location
The location where any default Modules folder should be copied, prior to customization, is:
Windows 7, Windows 8, Windows 10 | |
---|---|
Folder Name | Modules |
Location | %PROGRAMDATA%\DriveWorks\[Version Number]\Live\Themes\Web\content\custom\modules |
Example | C:\ProgramData\DriveWorks\[Version Number]\Live\Themes\Web\content\custom\modules |
Description | Modules folder is an empty folder for copying parts from the Web theme to enable modification |
Original Module Folder | Copied Folder | Notes |
---|---|---|
Live\Themes\Web\content\system\modules\ Login | Live\Themes\Web\content\custom\modules\ Login | Rename the folder indicated byLogintoMy Module(for example) |
Your own image can be used as an icon for the new module by creating an image with the following properties:
Follow the steps below to display your image:
Each module, in general, will contain two .cshtml files that specifically deal with how the module will be displayed (UI).
Typically only the view\views\main.cshtml file should be modified. This will require knowledge of HTML and CSS. For more advanced server side communication, knowledge of VB.Net is required.
C:\ProgramData\DriveWorks\[Version Number]\Live\Themes\Web\content\custom\modules\Login\view\views