Installation Guide | Embed a DML Collection

Content Revenue How it works Advertisers

Latest Updates

Resources

On this page

More from DML

Latest Updates Get in Touch About DML DML Topics Installation Guide CMS Guide Ad-Unit Guide FAQs

Docs · Installation guide

Install a DML Collection.

Embedded Collections are easy to integrate into your site — just a couple of lines of HTML and JavaScript. Generate your embed code with the Embed Wizard in the DML Marketplace, then drop it in.

On this page

Generate an embed code Embed a Collection Alternate layouts Full-page layout Section layout

Generate an embed code

Open the DML Marketplace and choose the collection you want to embed — for example, California Education by EdSource. Click Embed for free to open the Embed Wizard, then select your layout and item count. The Wizard generates the embed code you'll paste onto your site.

Embed a Collection

There are three ways to add a Collection, depending on how your site is built.

Option 1 — Add to a single page

Copy and paste the generated embed code onto any page to try it out.

Copy

Option 2 — Install site-wide

Add the script once inside your tag:

Copy

Then drop a container wherever you want the Collection to appear:

Copy

Option 3 — Google Tag Manager

Option A. Create a Custom HTML tag containing the embed script, add your trigger, then place the DML container in your page template:

Copy

Option B. Create a Custom HTML tag that sets the collection ID on the placeholder and loads the embed script:

Copy

Add your trigger, then place the container in your template:

Copy

Note: Replace the stackid with your desired collection ID. Tested with Page View and DOM Ready triggers.

Alternate layouts

You can pick a layout in the Embed Wizard, or set it manually with the data-layout attribute:

Copy

Full-page layout

Full-page Collections fill the page body with a list of articles.

Step 1

Create an empty page using your standard section template.

Step 2

Copy and paste the embed code. Replace the stackid value and adjust data-items as needed:

Copy

Section layout

DML Sections fill the page body with multiple collections.

Step 1

Create an empty page using your standard section template.

Step 2

Copy and paste the embed code, replacing the sectionid value accordingly:

Copy

Need a hand?

We'll help you get embedded.

Questions about installation? Reach us at support@distributedmedialab.com.

Contact us Open the Marketplace

Premium content and new revenue for local news and public media.

Company

About DML Updates Contact

Resources

Installation guide CMS Guide FAQs

© 2026 Distributed Media LabMountain View, California