Shared Samples

Build, modify and run workflows on geospatial data using Spatial Modeler SDK . Build complex algorithms or run routine tasks, and build add-ons to ERDAS IMAGINE and GeoMedia. *
Showing results for 
Search instead for 
Do you mean 

How to add branding to your Workflow

by Technical Evangelist on ‎09-30-2019 02:29 AM (195 Views)

Question

How can I add custom logo or company branding to our workflows?

Answer

The recommended approach is to use custom footer (or header) for your Workflow. To do this, follow these steps:

  1. Navigate to "...\M.App Enterprise Warehouse\TenantName\Workflows\Views\Sharedand create FormFooter.cshtml.
    You can alternatively use FormHeader.cshtml to create custom header.
  2. Edit the FormFooter.cshtml file, putting this HTML code
    <div style="display:table;width:100%;">
        <div style="display:table-row;background-color:White">
            <div style="display:table-cell;padding-left: 15px">
                <h2>Workflow Footer Sample</h2>
            </div>
            <div style="display:table-cell;text-align:right;padding-right:10px;">
                <img src="~/Custom/Images/GSP.png" />
            </div>
        </div>
    </div>
    NOTE: .cshtml files are compiled by ASP.NET runtime, accepting ASP.NET-specific notations. In our case, we just use relative image path (~/...) which will be computed during compile time (more on this topic on MSDN).
  3. Download the attached GSP.png logo and place it into "...\M.App Enterprise Warehouse\TenantName\Workflows\Custom\Images" folder.
  4. Run the Workflow

To study more on the customization approaches we recommend to visit the online documentation - Workflow Manager Developer Guide, topic Workflow Design > Views and Templates.

 

Also see attached sample FormHeader.zip with related .cshtml and image files.

Overview
Contributors