webfactorybulgaria / comments
v4.1.5
2017-05-17 08:58 UTC
Requires
- webfactorybulgaria/core: ~4.1.0
- webfactorybulgaria/reasons: ~4.1.0
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.)
- Make your model use Commentable trait: use \TypiCMS\Modules\Comments\Shells\Traits\Commentable;
- 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:
- Add a span like this
- 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.