2017 © Pedro Peláez
 

contao-bundle contao-disqus-bundle

Contao 4 disqus bundle

image

heimrichhannot/contao-disqus-bundle

Contao 4 disqus bundle

  • Monday, May 7, 2018
  • by digitales@heimrich-hannot.de
  • Repository
  • 6 Watchers
  • 0 Stars
  • 54 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 20 % Grown

The README.md

Contao Disqus Bundle

Build Status Coverage Status, (*1)

Add the disqus comment system to your contao page., (*2)

Features

  • integrates into news article rendering
  • stand alone module to integrate wherever you want
  • Service for even more custom placement

Requirements

  • Contao 4.4
  • PHP 7

Installation

composer require heimrichhannot/contao-disqus-bundle

Setup

There are three options to integrate disqus., (*3)

News

  • in your news template (usually news_full.html5), add following code:
<?php if ($this->disqus_section): ?>
    <?php $this->disqus_section ?>
<?php endif; ?>
  • in your news archive, active disqus comments and enter disqus forum name

Module

  • create a module with the bundles disqus comments module and enter all need informations
  • add module to an article

Service

  • output the result of DisqusRenderer::render() (callable from huh.disqus.renderer service)
// Example from DisqusCommentModule (we recommend injecting the service instead of calling it direct from container):

$this->Template->disqus_block = System::getContainer()->get('huh.disqus.renderer')->render($this->disqus_shortname, $this->disqus_identifier);

The Versions