Document Templates in DriveWorks provide easily customizable branding that can be edited and distributed throughout Projects. For example, if a marketing department decided to rebrand everything within a company (name, UI or logo) then updates and edits would only need to be made once (in the original Document Template) for changes to be reflected across all Projects that use that specific template. They can be useful for managing a multi-user implementation.
Document Templates need to contain all relevant master documents, reference images and any other additional files to display a description in the 'Create Document...' wizard.
Follow the steps below to create a Document Template :
The examples below demonstrate how xml/html files are converted in DriveWorks.
<!-- Document --> <Document Name="{Name}" Type="Email"> <From><Rule>="MyEmailAddress"</Rule></From> <To><Rule>="YourEmailAddress"</Rule></To> <Cc></Cc> <Bcc></Bcc> <Subject><Rule>=" Your Email Document Template Subject"</Rule></Subject> <Attachments><Rule>=FSGetFullPathProject("{Name} Your Email Document Template Name\Logo.png")</Rule></Attachments> <PreventOutlookNewlineRemoval>False</PreventOutlookNewlineRemoval> <SendAsHTML>True</SendAsHTML> <Body><![CDATA[ <!DOCTYPE html> <html> <head> <title>Your Email Document Template Title</title> <style> body ( font-family:"Calibri",sans-serif; } </style> </head> <body> <p>Hi</p> <p>Your Email Here</p> <p>Kind Regards</p> <p><span style="color: #C00000; margin-bottom: 0;"><strong>DriveWorks Support Team – </strong></span><span style="color: #7F7F7F; <p>DriveWorks Ltd | Configure & Automate </p> <p>---------------------------------------------------------------------</p> <p>T: <strong> + 44 1925757585 </strong> | T: USA <strong> 978 633 3230 </strong> </p> <p>E: </span>support@driveworks.co.uk</p> <span style="color: #C00000; margin: 0">www.driveworks.co.uk</span></p> <img src="Logo.png" alt="DriveWorks Logo"> </body> </html> ]]></Body> </Document>
<!-- Document --> <Document Name="{Name}" Type="ExcelDocument" MasterDocumentPath="{Dir:BasePath}ExcelDocument.xlsx" FileNameRule="="{Name} " & DWSpecification & ".docx"" DocumentPathRule="" IsHidden="False" CreateHtml="False" IsHtmlFileHidden="False" CreatePdfFileHidden="False"> <NamedRanges> <NamedRange Name="Cell"> <Rule>="Placeholder"</Rule> <Comment></Comment> </NamedRange> </NamedRanges> </Document>
<!-- Document --> <Document Name=" {Name} " Type="WordDocument" MasterDocumentPath="{Dir:BasePath}WordDocument.docx" FileNameRule=""{Name} " & DWSpecification & ". docx"" DocumentPathRule="" IsHidden="False" CreateHtml="False" IsHtmlFileHidden="False" CreatePdf="False" IsPdfFileHidden=="False" <Bookmarks> <Bookmark Name="Bookmark"> <Rule>="Placeholder"</Rule> <Comment></Comment> </Bookmark> </Bookmarks> </Document>
<!-- Document --> <Document Name="{Name}" Type="XmlDocument" XmlPath="{Dir:BasePath}XMLDocumentSimple.xml" FileNameRule="="{Name} " & DWSpecification & ".html"" DocumentPathRule="" IsHidden="False"> <Rules> <ElementRule ElementRef="Field1">="Field Placeholder"</ElementRule> </Rules> </Document>
<!--Document --> <Document Name="{Name}" Type="AdvancedXmlDocument" XmlPath="{Dir:BasePath}XMLDocumentAdvanced.xml" FileNameRule="= " XMLDocumentAdvanced " & DWSpecification & ".html"" DocumentPathRule="" IsHidden="0"> <Rules> <ElementRule ElementRef="Cubes/Cube/Height">="Height Placeholder"</ElementRule> <ElementRule ElementRef="Cubes/Cube/Width">="Width Placeholder"</ElementRule> <ElementRule ElementRef="Cubes/Cube/Depth">=DWVariableCreated </ElementRule> </Rules> </Document> <!-- Variables --> <VariableCategory Name="VariableCategory1"> <Variable Name="Created">=TEXT(TODAY(), "DD MMMM YYYY")</Variable> </VariableCategory>
To uninstall a Document Template please follow the steps below:
Local Disk>ProgramData>DriverWorks>[Version Number]>Templates>Documents
The deleted Document Template will be removed.