v4.1.5 2017-05-17 08:58 UTC

This package is not auto-updated.

Last update: 2024-11-09 20:22:56 UTC


README

Frontend

omments can be added to models with the commentable trait(ex. news, events, articles, tours etc.)

  1. Make your model use Commentable trait: use \TypiCMS\Modules\Comments\Shells\Traits\Commentable;
  2. Include this in the blade file {!! Comments::render($model) !!}. $model should be Commentable

You can select from Local, Disquss and Facebook comments

Disquss:

You have to set your short_name in the config. (make sure you copy the whole disquss section from the comments array) If you want to show the number of comments on the listing you need to:

  1. Add a span like this
  2. Add this to the bottom of the list: <script id="dsq-count-scr" src="//test-fzgboletzf.disqus.com/count.js" async></script> (more info: https://help.disqus.com/customer/portal/articles/565624)

Facebook:

If you want to moderate the comments in facebook you have to add this at the top of your show.blade @section('meta_tags') {!! Comments::getMetaTags() !!} @endsection

Backend

Comments are managed through the admin Comments tab

This module is part of Admintool4, a multilingual CMS based on Laravel 5.