The Web Theme is optimized to allow extensive modifications without affecting the system files.
This will allow all future service packs and major versions to be installed with minimal impact to any modifications that have been made.
Before undertaking any modifications to the files DriveWorks Live uses it is important to understand the following:
All files that enable DriveWorks Live are stored in the location:
%ProgramData%\DriveWorks\[version number]\Live\Themes
The Themes folder contains the following sub folders:
All files required for the Application Theme are stored here.
All files required for the Web Theme are stored here. The Web Theme is highly customizable.
The table below identifies the Core and Custom files that are located in the \Web folder:
Item | Type | Notes |
---|---|---|
DriveWorks.config | Custom | This file contains the following information:
|
Global.asax | System | This file should not be changed in the system folder, copy to the custom folder before modifying. |
Theme.drivetheme | System | This file should not be changed in the system folder, copy to the custom folder before modifying. |
Web.config | Custom | This file contains the Session Timeout setting- This can be adjusted to suit your preference. |
\bin | System | The files in this folder should not be changed, copy to the custom folder before modifying. |
\content | Contains the custom folder. | |
Web.config | System | The files in this folder should not be changed, copy to the custom folder before modifying. |
\system | System | The files in this folder should not be changed directly.
To customize anything in the system folder, e.g. a skin or module, copy it across to the custom folder. Files in the custom folder override files in the system folder. |
error.cshtml | System | The files in this folder should not be changed, copy to the custom folder before modifying. |
navigation.xml | System | This file should not be changed directly.
To customize anything in the system folder, e.g. a skin or module, copy it across to the custom folder. Files in the custom folder override files in the system folder. |
pages.xml | System | This file should not be changed.
If the \custom folder does not contain the pages.xml file it will be copied from the \system folder when a Live session is started. To customize anything in the system folder, e.g. a skin or module, copy it across to the custom folder. Files in the custom folder override files in the system folder. |
\components | System | The files in this folder should not be changed, copy to the custom folder before modifying. |
\handlers | System | The files in this folder should not be changed, copy to the custom folder before modifying. |
\modules | System | The files in this folder should not be changed directly.
To customize anything in the system folder, e.g. a skin or module, copy it across to the custom folder. Files in the custom folder override files in the system folder. |
\skins | System | The files in this folder should not be changed directly.
To customize anything in the system folder, e.g. a skin or module, copy it across to the custom folder. Files in the custom folder override files in the system folder. |
\settings main.js | System | The file in this folder should not be changed directly. To customize this file copy it across to the custom\settings folder. Files in the custom folder override files in the system folder. this file contains the setting that controls:
|
\custom | This folder should be used to contain any custom modules or skins that you create, or copy from the originals in the system folder. | |
pages.xml | System | This file should not be changed. It will be replaced with the file of the same name from the \system folder when a Live session is started. |
\uploads | System | This folder is used to contain any uploads from the image upload module. |
\modules | Custom | This folder should be used to contain any custom modules that you create, or copy from the originals in the system folder. |
\skins | Custom | This folder should be used to contain any custom skins that you create, or copy from the originals in the system folder. |
\settings | Custom | This folder should be used to contain the customized main.js file, copied from the \system folder. |
\setup | System | The files in this folder should not be changed. |
Display Order
When running DriveWorks Live the files in the Custom folder will be read first.
If the required file is not found DriveWorks Live will read the file from the System folder.
Some circumstances require a list of third party domains that are permitted for redirection purposes to be added to the DriveWorks.config file.
This could be:
An example of a query string to logout can be found in the topic Logging Out of a Browser Session under Redirect the Logout URL.
This could occur when a user has visited a page prior to logging in, DriveWorks can redirect to the login page and then back to the original page being viewed once authenticated.
This can only be done from a query string. Since query strings can be changed in the browser (or sent via email etc.) it may not be trusted.
If your site requires redirection to a trusted third party domain, this must be specified in the DriveWorks.config file as detailed below:
This is located in the folder %ProgramData%\DriveWorks\[version number]\Live\Themes\Web\
<driveworksLive> </driveworksLive>
If this file has already been modified for a Group Connection String it could also appear as:
<driveworksLive groupConnectionString="Provider=RemoteGroupProvider;Server=MachineName;Name=GroupName;"> </driveworksLive>
<driveworksLive> <trustedRedirectDomains> <domain>*.driveworks.co.uk</domain> <domain>driveworkslive.com</domain> </trustedRedirectDomains> </driveworksLive>
Replace .driveworks.co.uk or driveworkslive.com with the trusted domains redirects are permitted to use.
The wildcard behavior (demonstrated in the first given domain above) is as follows:
Using the examples above:
the table below shows the domains that are permitted and not permitted:
Permitted | Not Permitted |
---|---|
http[s]://www.driveworks.co.uk http[s]://driveworks.co.uk http[s]://anything.driveworks.co.uk http[s]://driveworkslive.com http[s]://driveworks.co.uk/the/rest/of/the/path?doesnt=matter | The following redirects would not be permitted because wildcards only permit one matching label: http[s]://abc.123.driveworks.co.uk The following redirects would not be permitted because no wildcard subdomains have been permitted by the configuration: http[s]://www.driveworkslive.com http[s]://anything.driveworkslive.com http[s]://abc.123.driveworkslive.com |
Customizing a Skin is done by:
To identify a skin to base your customization on:
To copy a skin, for customizing, follow the steps below:
This will be one of the folders from:
It is the files in this folder that should be modified to create the new skin.
Once the Skin has been copied to the \custom\skins folder the files in the skin folder can be customized.
The files associated to a skin that are typically customized include:
File | Description |
---|---|
bg.png | Background image. (Not all skins require this file) |
skinImage.png | A thumbnail view of the skin for display on the \setup skins page. |
Header and Banner image files | The images to use for any required header and banners. (Not all skins require these files) |
skin.css skin.colors.css skin.fonts.css | The cascading style sheet files to set layout, colors and fonts used for the skin. |
skinProperties.xml | Built in view style for the skin (Metro or Main) |
Modules give each of the web pages a function. The method to apply a module can be generalized as:
A module can be viewed in 3 modes:
Customizing a module is done by:
This is simply a case of running through the specification process using PWE and noting the URL and position of the module you require.
Once the module is found enter edit mode on the page and the name will be displayed in the module.
To copy a module, for customizing, follow the steps below:
This will be one of the folders from:
It is the files in this folder that should be modified to create the new skin.
Once the Module has been copied to the \custom\modules folder the files in the modules folder can be customized.
The files associated to a module that are typically customized include:
File Name | Description |
---|---|
toolbox.png | The icon used to display the module when the page is in Edit mode. |
module.xml | Stores the settings of the module. (Not all modules require this file) |
controller.cshtml | Decides what to render. Receives the settings from the module.xml file (if required). |
\views (folder) | The files in this folder decide what is displayed to the user. |