Blogs

Embedding Your Directory in a Third Party site

By Heather McNair posted 05-07-2025 18:52

  

1. You’ll need to obtain your organization’s API access key. You can find this by going to the Admin portal, Platform > Configuration > My Organization:

  1. Where to obtain your API Key
    Copy the API key.

  2. There are two components to the Public Directory: the search and the results.

a. The Search looks like this:


    1. b. You can control which search fields appear by going to Directory > Settings in your Admin portal.

    2. c. The results look like this:
  1. 3. To embed the directory, locate the page in your website CMS where you'd like the directory to appear. In the CMS editor, embed the following JavaScript:

<script>

    var CGProps = {

                    CGAccessKey: "[Your organization’s API key here]",

                    APIDomain: "api.cloudgeneration.com"

                };

</script>

<script src="https://cdn.cloudgeneration.com/js/CGPublicDirectory.js?v=1">

</script>

In the HTML view of your page, the code should look something like this:

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

<title>Training and Education</title>

<link rel="stylesheet" type="text/css" href="https://cdn.cloudgeneration.com/css/CGPublic.css" media="all" />

<style>

    .CGBadgeExpiredNotice { top: 25px; }

</style>

<h1> Directory of Certified Individuals</h1>

<p><strong>&nbsp;</strong></p>

<p>The following list contains the names of those individuals who currently hold a Certification. This list contains information approved for public release. If you do not wish for your name to be included in this listing, please contact us.</p>

<div id="CGAchievementSearch">&nbsp;</div>

<div id="CGAchievementResults">&nbsp;</div>

<script>

    var CGProps = {

                    CGAccessKey: "[Your organization’s API key here]",

                    APIDomain: "api.cloudgeneration.com"

                };

</script>

<script src="https://cdn.cloudgeneration.com/js/CGPublicDirectory.js?v=1">

</script>

<p>&nbsp;</p>

The highlighted portion is optional. In some CMS’s, the “Expired” banner placement needs to be adjusted. 

0 comments
3 views

Permalink