talque
  • External integrations for talque
  • JSON API (readonly)
    • General
      • Locales and Text
    • Organization
      • Read
    • Lecture
      • List
      • Read
      • Files
      • Authorization
    • Speaker
      • List
      • Read
      • Authorization
    • Participants
    • Vendors
      • List
      • Read
      • Authorization
    • Room
      • List
      • Read
    • Enumerations
      • Locale
  • Deep links
    • General
    • Organization
    • Profile links
    • Lecture links
    • Partner links
    • Post links
    • Map links
    • Video rooms
  • Webhooks
    • General
    • Authentication
    • File upload
    • Users
    • Invites
    • Tickets
    • Vendors
      • Create
      • Update
      • Delete
    • COMING SOON: Announcements
    • COMING SOON: Lectures
    • Map Data
      • Map layer
      • Map features
      • Update references
  • COMING SOON: Chat Bots
  • Wordpress Plugin
    • Installation
    • Pages
    • Shortcodes
      • Filters
      • Optional settings
    • Routing
    • Configuration
  • Javascript plugin
    • Introduction
    • Installation
      • Initial page
      • Filters
      • Optional settings
    • Routing
    • Configuration
  • Single Sign-On
    • OAuth2 Login
    • Website data
    • OAuth2 Flow
      • Request an Authorization Code
      • Exchange for Access Token
      • Authorized Requests
  • SELF-SERVICE LINKS
    • Event Ticket Token
  • Old Wordpress Plugin
    • Download
    • Pages
    • Shortcodes
    • Filter Options
    • Style Options
  • Old Javascript Plugin
    • Introduction
    • Routing
    • Installation
  • Troubleshooting
    • Firewall Configuration
  • Talque Plugin
    • Download
    • Installation
    • Configuration
Powered by GitBook
On this page
  • CSS
  • Javascript
  • Content
  • Complete Example

Was this helpful?

  1. Old Javascript Plugin

Installation

CSS

The style sheet for the talque plugin should be in the loaded in the <head> of the page:

<link rel="stylesheet" href="https://event.talque.com/talque-js-plugin.css"/>

Alternatively, the stylesheet link can also be placed in the body of the page but above the content snippet (see below).

Javascript

The javascript code of the talque plugin is ideally loaded asynchronously, so the initial render of your web page during load happens as soon as possible. For this, place the following in the <body> of your page:

<script 
    async defer type="text/javascript" 
    src="https://event.talque.com/lib/talque-js-plugin.js">
</script>

Alternatively, for example if you use a content management that does not support asynchronous loading of resources, you can also place the above in the <head> of your page.

Content

The position of the content is determined by the css id talque-js-plugin, which requires a few data- attributes to configure what to show and how to present it. For example:

<div
    id="talque-js-plugin"
    data-org-id="qRY08MFxsIo97DecfEPk"
    data-locale="DE_DE"
    data-backend="https://event.talque.com"
    data-settings="{}"
    data-site-url="/path/to/js-plugin">
</div>

The meaning of the data attributes is as follows:

  • data-org-id is the organization id of your event

  • data-backend should always be https://event.talque.com

  • data-settings allows you to customize the display

Complete Example

Here is a minimal example that demonstrates where the different elements should be placed

<html>
    <head>
        <link rel="stylesheet" href="https://event.talque.com/talque-js-plugin.css"/>
    </head>
    <body>
        <h1>Welcome to my test page!</h1>
        <div
            id="talque-js-plugin"
            data-org-id="qRY08MFxsIo97DecfEPk"
            data-locale="DE_DE"
            data-backend="https://event.talque.com"
            data-settings="{}"
            data-site-url="/path/to/js-plugin">
        </div>
        <script 
            async defer type="text/javascript" 
            src="https://event.talque.com/lib/talque-js-plugin.js">
        </script>
    </body>
</html>

PreviousRoutingNextFirewall Configuration

Last updated 6 years ago

Was this helpful?

data-locale determines language on labels and date formats. The currently supported values are listed in the section

data-site-url is the relative route (excluding the hostname) of where the plugin is being served. In the section this is described in more detail.

Locale
Routing