Documentation on comment counter.

pull/57/head
Jocelyn Delande 11 years ago
parent cbd449dcd0
commit 5cdab92a4b

@ -0,0 +1,23 @@
Advanced integration
====================
Comment counter
----------------
If you want to display a comment counter for a given thread, simply
put a link to that comments thread anchor:
.. code-block:: html
<a href="/my-uri.html#isso-thread">Comments</a>
The *isso js client* willl replace the content of this tag with a human readable
counter like *"5 comments"*.
Alternatively, if guessing from `href` is not relevant, you could use a
`data-isso-id` attribute on the `<a>` to indicate which thread to count for.
Make sure you have `embed.min.js` included in your page (see :doc:`quickstart`).
You can have as many comments counters as you want in a page but be aware that it
implies one `GET` request per counter.

@ -132,6 +132,9 @@ Note, that `data-isso` is optional, but when a website includes a script using
That's it. When you open your website, you should see a commenting form. Leave
a comment to see if the setup works. If not, see :doc:`troubleshooting`.
For further integration, look at :doc:`advanced-integration`.
.. _Nginx: http://nginx.org/
.. _CORS: https://developer.mozilla.org/en/docs/HTTP/Access_control_CORS

Loading…
Cancel
Save