Origami Frontend Components & Services

Demos: o-comment-count

Main

Basic setup

<div data-o-component="o-comment-count" data-o-comment-count-config-article-id="3a499586-b2e0-11e4-a058-00144feab7de">
Comments
</div>

Custom Template

How to provide a custom template at an individual level

<div data-o-component="o-comment-count" data-o-comment-count-config-article-id="3a499586-b2e0-11e4-a058-00144feab7de" data-o-comment-count-config-template="This article has {count} comment{plural}.">
Comments
</div>

Auto Refresh

Enable auto refresh: interval of 1 minute

<div data-o-component="o-comment-count" data-o-comment-count-config-article-id="3a499586-b2e0-11e4-a058-00144feab7de" data-o-comment-count-config-auto-refresh="true">
Comments
</div>

Defer Init

Initialize later

<div data-o-component="o-comment-count" data-o-comment-count-config-article-id="3a499586-b2e0-11e4-a058-00144feab7de" data-o-comment-count-auto-init="false">
Comments
</div>

<script>
	setTimeout(function () {
		oCommentCount.init();
	}, 4000);
</script>
Switch component view

GitHub Repository

Install o-comment-count

If using the Build Service, add o-comment-count@^0.4.0 to your script tag.

If running a Manual Build, run bower install --save "o-comment-count@^0.4.0".

Help & Support

o-comment-count is maintained directly by the Origami team. If you have any questions about o-comment-count or Origami in general, we are happy to help. 😊

Slack: #ft-origami
Email: origami.support@ft.com

Feedback / Issues

To report a bug or request features please create an issue on Github. For support or general feedback please get in touch 😊

Slack: #ft-origami
Email: origami.support@ft.com