Skip to main content
Skip table of contents

Building Design System Content in Activator

File Structure

In the Design System folder (shared) there are several folders made to hold content items:

  • [Brief | Email | Slide]/layouts

  • [Brief | Email | Slide]/helpers

  • [Brief | Email | Slide]/templates

  • fragments

What goes into those folders will be discussed in next section.

Content Types

Layouts

Layouts are snippets of code intended to be used as blue-prints for new content. Layouts will have placeholder text, images and other elements intended to be replaced by editor or designer user.

Helpers

Helpers are very similar to layouts but instead of being blue-prints for new content, they are actually ready to be used as they are. Helpers are often created from a layout after having applied correct images, text and other elements. Think of helpers making it easy to save sections of a document to be reused in other documents.

Templates

Templates are used to create new documents. All design systems should at a minimum have one template per document type, or it will not be possible to create new content in Activator relating to that design system.

Fragments

Fragments are also snippets of code, similar to layouts and helpers. However, fragments are loaded into the document at run-time, while layouts and helpers are pasted into the HTML of the document. This means that the content of a fragment cannot be changed on a document. Think of fragments as content pieces that should always have the exact same content regardless of where they are used, e.g. logos, menus etc.

Fragments are for web content, i.e. for briefs and slides. There are email fragments as well, but those are Veeva documents and not part of the Design System.

Creating Layouts and Helpers in Activator

Layout and helpers are best created from within a document in Activator. In other words, use or create a document with the document type you want to create a layout or helper for. You can create as many layouts and helpers as you wish from the same document. These are the steps to create a layout:

  1. Begin with a row component and build out the content as desired inside it.

2. Click ‘Save as…’ button at the bottom of the right menu

3. Click ‘New layout’ and add it to an existing group, or create a new one.

4. That’s it, the layout is now saved to the Design System and can be used by other documents using the same shared folder.

To create a helper, follow the same steps as above but add the final content before choosing ‘Helper’ in the save dialog. Here is an example building on the steps of creating a layout:

  1. Add images from ‘Content’ tab

2. Import content module in ‘Content’ tab and add text from it

3. Once content has been added, click the ‘Save as…’ button and choose ‘Helper’

Creating Templates

Example: Saving an Email in a Design Systm as a template for future use

Currently, there is no UI to create templates in Activator. However, it is really easy to do it locally if following these steps:

  1. Create a new document of the appropriate document type in Activator (i.e. How to Create an Email) and attach it to the Design System you would like to save the template within

  2. Design the template using the Activator editor/designer UI

  3. When done, publish the document

  4. Download the document source code from the Share dialogue:

  5. Download the Design System where you want to create a new template

  6. Copy the document folder from the downloaded archive folder into the templates/ folder of the document type you're generating a template for:

  7. Go to the root of the folder and select all files and generate a zip file of all the contents

  8. Drag and drop the new Design System archive onto Activator and choose to replace the Design System:

Alternative method using Veeva Vault PromoMats (Email Template example)

Step 4 above can be manually completed in Vault Vault PromoMats following these steps:

  1. Download the document email.html file (Source file) and the mjml.file (Attachment) from the Document Files tab in Veeva Vault PromoMats:

  2. Rename the source file (eg. “Remepan Email 1 (2.2.2).html") to email.html

  3. Create a thumb.png file to be the preview of your template

  4. Make sure you now have mjml.html, thumb.png, and email.html files within the same folder (eg. named “Long Template") with the name of the template you want

  5. In Veeva Vault PromoMats, find the Design System where you want to save the document as a new template

  6. Download the Distribution Package (eg. “p_42313_0_40_7156b79b-5ac3-45ee-bdfd-4bea8fa76082.zip") of that Design System:

Step 8 above can be completed in Veeva Vault PromoMats following these steps:

  1. Click [Create Draft] from the Action Menu in Veeva Vault PromoMats on the Design System:

Creating Fragments

New fragments can’t be created from Activator UI at this point, but all that is required is adding a new folder with a an empty* index.html file. Here are the steps:

  1. Download the Design System where you want to create a new fragment

  2. In ‘fragments’ folder, create a new folder

  3. In the folder, create a new file and name it index.html

  4. Inside the index.html file, add a HTML comment, e.g. <!-- Bottom Menu Fragment -->

  5. Add a thumbnail to the folder called thumb.png

  6. Build and export the Design System

  7. Drag and drop the new Design System archive onto Activator

  8. Choose to upgrade the Design System

  9. Open the fragment in fragment editor and add components as desired

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.