Coder Social home page Coder Social logo

dustindclark / grails-disqus Goto Github PK

View Code? Open in Web Editor NEW

This project forked from gpc/grails-disqus

0.0 1.0 0.0 507 KB

Grails Disqus plugin

Home Page: http://grails.org/plugin/disqus

License: Other

Groovy 55.25% Shell 30.35% Batchfile 14.40%

grails-disqus's Introduction

Build Status

Grails Disqus plugin

It provides embeding DISQUS commenting system into your Grails application.

Installation

Latest Version: Download

Configuration

Plugin requires the site's shortname option. You can specify it in Config.groovy:

grails.plugin.disqus.shortname = "mysiteshortname"

You can also pass shortname attribute to disqus:comments tag. To get shortname visit http://disqus.com/

To embed comments use following tag:

<disqus:comments bean="${article}" /> or <disqus:comments identifier="page-1" />

You must add either bean or identifier attribute. For bean attribute any object can be passed and it will generate the following identifier, ex. "Article@1".

Optional attributes:

  • url. Permlink to the page. If not specified then request url will be used.
  • shortname. The shortname of the site generated in www.disqus.com during registration

NOTICE

The Disqus will not work properly until the page will be deployed under the registered domain. This is normal behavior :)

More configuration

To translate "noscript" message you can add config option:

grails.plugin.disqus.noscript = "You don't have javascript therefor no comments for you :("

To change poweredby message you can add config option or just use empty string to remove it:

grails.plugin.disqus.powered = "Comments powered by Disqus"

Identifier generation can by modified by creating identifier closure in Config.groovy:

grails.plugin.disqus.identifier = { bean -> return bean.toString() }

Plugin can be disabled by setting enabled = false in config grails.plugin.disqus.enabled = false

grails-disqus's People

Contributors

dustindclark avatar graemerocher avatar snimavat avatar lhotari avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.