Skip to content

Comments ​

The Comments API adds a comment section to the file view page, so visitors can discuss each file. You can use Disqus or paste the embed code of any other comment service.

Pro feature

Comments are available in Chevereto Pro.

Supported providers ​

The table below lists the options and the value stored for each one in the comments_api setting.

ProviderValueDescription
DisqusdisqusBuilt-in Disqus embed, with optional single sign-on
JavaScript/HTMLjsAny comment service that provides an HTML embed

Disqus ​

  1. Sign in to Disqus and go to Add Disqus to site
  2. Register your website and copy its shortname (the shortname part of shortname.disqus.com)
  3. Under Settings > Advanced, add your domain (for example yourwebsite.com) to Trusted Domains

Go to Settings > External services, set Comments API to Disqus, and enter the Disqus shortname.

Single sign-on ​

Single sign-on (SSO) lets users who are logged in to your website comment with their Chevereto account, without creating a Disqus account. Chevereto passes the user's name, email, avatar and profile URL to Disqus.

  1. Make sure SSO is available for your Disqus account (it may require a paid plan or a request to Disqus)
  2. Register an API application and copy its public key (API key) and secret key
  3. In the application settings, link it to your website for SSO

Enter both keys as Disqus public key and Disqus secret key at Settings > External services. SSO is used only when both keys are set.

JavaScript/HTML ​

Use this option for any other comment service, or for your own code. Paste the embed code your provider gives you in Comment code at Settings > External services.

The code is printed in the file view page. You can use these placeholders, which Chevereto replaces for each page:

PlaceholderReplaced with
{{ PAGE_URL }}URL of the file view page
{{ PAGE_ID }}Unique identifier of the file
{{ PAGE_TITLE }}Title of the file
{{ LANGUAGE_CODE }}Language of the visitor, for example en

Use {{ PAGE_URL }} and {{ PAGE_ID }} so each file gets its own comment thread.

Released under the Apache-2.0 License.