Skip to content
This repository has been archived by the owner on Feb 26, 2021. It is now read-only.

Latest commit

 

History

History
39 lines (26 loc) · 1.49 KB

PerUserConfig.md

File metadata and controls

39 lines (26 loc) · 1.49 KB

Per User Config

Each time Polis loads into an embedded context, you can optionally configure Polis at the user level to hide or show facets of the interface.

Hiding the comment submit form

The data-ucw (user can write) tag toggles writing, and is only relevant for that user for that session.

Hiding voting interface

The data-ucv (user can vote) tag toggles voting, and is only relevant for that user for that session.

Hiding the visualization

The data-show_vis causes the vis to be enabled or disabled when the conversation initializes. This is a one-time setting which is picked up and stored in our db the first time someone loads this script. If you later change this value, it won't have any effect. To change that value, you can load the config tab of the admin page for that conversation (the button for the conversation's admin page should appear in preprod.pol.is/inbox )

Hiding the Topic

The data-ucst (user can see topic) tag toggles visibility of the topic, and is only relevant for that user for that session.

Hiding the Description

The data-ucsd (user can see description) tag toggles visibility of the description, and is only relevant for that user for that session.

<div
   class="polis"
   data-page_id="your_pageid_1234"
   data-site_id="polis_site_id_your_site_id_goes_here"
   data-ucv="true"
   data-ucw="false"
   data-ucst="false"
   data-ucsd="false"
   data-show_vis="true"
>
</div>
<script async="true" src="https://preprod.pol.is/embed.js"></script>