--- title: Workflow maps tags: [formatting] keywords: release notes, announcements, what's new, new features last_updated: July 16, 2016 summary: "Version 6.0 of the Documentation theme for Jekyll reverts back to relative links so you can view the files offline. Additionally, you can store pages in subdirectories. Templates for alerts and images are available." sidebar: mydoc_sidebar permalink: mydoc_workflow_maps.html folder: mydoc --- ## Workflow maps overview You can implement workflow maps at the top of your pages. This is helpful if you're describing a process that involves multiple topics. See the following demos: * [Simple workflow maps][p2_sample1] * [Complex workflow maps][p2_sample6] ## Simple workflow maps 1. Create an include at \_includes/custom/usermap.html, where usermap.html contains the workflow and links you want. See the usermap.html as an example. It should look something like this: ```xml
--- title: Sample 1 Topic keywords: sample summary: "This is just a sample topic..." sidebar: product2_sidebar permalink: p2_sample1 folder: product2 simple_map: true map_name: usermap box_number: 1 ---In the page.html layout, the following code gets activated when `simple_map` equals `true`: ``` {% raw %}{% if page.simple_map == true %} {% include custom/{{page.map_name}}.html %} {% endif %}{% endraw %} ``` The script adds an `active` class to the box number, which automatically makes the active workflow box become highlighted based on the page you're viewing. The `map_name` gets used as the name of the included file. ## Complex workflow maps The simpler user workflow allows for 5 workflow steps. If you have a more complex workflow, with multiple possible steps, branching, and more, consider using a complex workflow map. This map uses modals to show a list of instructions and links for each step. 1. Create an include at \_includes/custom/usermapcomplex.html, where usermapcomplex.html contains the workflow and links you want. See the usermapcomplex.html as an example. The code in that file simply implements Bootstrap modals to create the pop-up boxes. Add your custom content inside the modal body: ```
This is just dummy text ... Your first steps should be to get started. You will need to do the following:
If you run into any of these setup issues, you must solve them before you can continue on.
myModal3" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"> 2. For each topic where you want the modal to appear, insert the following properties in your frontmatter:--- title: Sample 6 Topic keywords: sample summary: "This is just a sample topic..." sidebar: product2_sidebar permalink: p2_sample6 complex_map: true map_name: usermapcomplex box_number: 1 toc: false folder: product2 ---When your frontmatter contains `complex_map` equal to `true`, the following code gets activated in the page layout.html file: ``` In the page.html layout, the following code gets activated when `map` equals `true`: ``` {% raw %}{% if page.complex_map == true %} {% include custom/{{page.map_name}}.html %} {% endif %}{% endraw %} ``` ``` {% include links.html %}