Skip to content

webfactorybulgaria/Comments

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Comments

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.

About

No description, website, or topics provided.

Resources

License

MIT, MIT licenses found

Licenses found

MIT
LICENCE
MIT
LICENSE

Stars

Watchers

Forks

Packages

No packages published