Content Syndication

Viafoura offers content syndication between any sites on the allowlist within the same site group.

📘

V3 Feature

This feature is only available on V3 platform or later.

Enabling Content Syndication

To ensure that both the syndicated site and the site relaying the syndicated content are authorized and active participants in the process, Viafoura utilizes a secure key system consisting of two elements:

  • A secure key, generated by Viafoura to enable site syndication between sites within the same site group. This secure key will be privately held by Viafoura and not shared publicly.
  • A container signature, generated by the client's backend systems for each specific widget that will be displaying syndicated content.

In order to implement this feature, or to start testing it in a development environment, please work with our Customer Success team to confirm that a Secure key has been generated for your site group; then follow one of the methods below to obtain container signatures and create syndicated widgets.

Syndicating Content

Once the secure key has been created, there are two different workflows that can be used to syndicate content between two sites:

Via the FrontEnd Widget

  1. Visit the page that will be supplying the syndicated content.
  2. Log in with administrator permissions.
  3. In the Viafoura widget open the settings menu and click the "syndicate" button.
  4. Copy the HTML code snippet generated by the widget.
  5. Paste that HTML code snippet on the template of the page that will be receiving the syndicated content. This will add a net new widget on the page, with the syndicated content.

🚧

Notes

  • If the secure key has not been created, the "syndicate" button will return the error message "Failed to fetch content syndication signature".
  • If the sites relying the syndicated content and receiving it are not in the same site group in Viafoura's system, the syndicated widget will not load.

Via BackEnd Automation

It's possible to automate the content syndication process to, for example, enable an option in the CMS for users to syndicate content without having to go to Viafoura's widget in the FrontEnd:

  1. Use your ClientID and ClientSecret to authenticate with Viafoura's API access: Authorization API Endpoint
  2. Call the API Endpoint to obtain the container signature key for syndication of that specific widget: Get Container Signature API Endpoint
  3. Save the API response in your database.
  4. Use the container signature key and the containerID of the content that will be syndicated to create the code snippet that will load the new widget in the page that is receiving the syndicated content.

Examples

This is an example of a code snippet that will generate an original (non-syndicated) conversations widget:

<div class="viafoura">
  <vf-conversations vf-container-id="unique-article-id"></vf-conversations>
</div>

🚧

ContainerID

Note that in the example above, container ID is being set directly in the widget. Normally we would recommend to set the container ID in the page meta tags.
Learn more about containerID.

This is an example of a code snippet that will generate a conversations widget syndicated from the previous example:

<div class="viafoura">
    <vf-conversations  vf-container-id="unique-article-id" signature="-site-group-secure-signature"></vf-conversations>
</div>

Did this page help you?