Sign in to edit and +1 items.
Login required
Download

Simple Blog

(0)
Author(s) Graeme Rocher
Current Release 0.2.1   (2 months ago)
Grails Version 1.1 > *
Tags blog  news 
Dependency
compile ":simple-blog:0.2.1"
A plugin that adds a simple blog interface to an application
Last updated by graemerocher 3 years ago
grails install-plugin simple-blog
Last updated by domurtag 2 months ago

Simple Blog Plugin

A plugin that adds a simple blog interface to an application. Features:

  • Post creations
  • Tagging
  • Comments
  • Rss/Atom Feed

Dependency

Usage

Install

grails install-plugin simple-blog
Simple-blog plugin works simply by installing the plugin. After installation you will have a controller to access:
http://localhost:8080/<your-application>/blog

User Evaluator

In order to use this plugin you need to define a user evaluator in grails-app/conf/Config.groovy
grails.blog.author.evaluator = { session.user }
if your user information is passed through request use
grails.blog.author.evaluator = { request.user }
One other option is to define a simple string to be added:
grails.blog.author.evaluator = { "defaultUser" }

UrlAccess

Useful available links:
/blog/$author?/$year?/$month?/$day? - List entries ( author and date range optional args)
/blog/tagged/$tag - List entries with tag
/blog/feed/[rss|atom] - Rss Feed

Taglibs There's a way to render last entries in other parts of your website:

<blog:renderEntries number="3" />

Skinning

The plugin doesn't come with a layout or css defined, you will need to define the cascade for your application. Set styles for UI components like "blogControls", "blogQuickLinks", "blogTags", etc

Roadmap

  • richer user edition
  • improve entries management

Plugin History

  • 02/2012 0.2.1 - Version release. Changes: (contribution by Donal Murtagh)
    • Bug fix: blank search query string was throwing a org.apache.lucene.queryParser.ParseException
  • 02/2012 0.2.0 - Version release. Changes: (contribution by Donal Murtagh)
    • Using Grails 2.0.1
    • Added ability to delete blog entries
    • Added missing dependencies
  • 05/2010 0.1.4 - Version release. Changes: (contribution by Victor Hugo Germano)
    • Using Grails 1.3
    • Created Wiki documentation
    • Improvements on urlMapping
    • Created unit/integration tests
    • Plugin now works more out of the box (straight forward installation and usage)
Last updated by admin 3 years ago
Last updated by admin 3 years ago