9. Februar 2012

Make your Grails app show content

There is a great way to show content from inside your Grails app: Write the content in WordPress and let the WordPress plugin for Grails pull the content into the app:

The WordPress plugin provides tags for pulling content from wordpress for display in grails. ehcache is used to cache wordpress content for a 5 minute period.

Configuration is a piece of cake:

wordpress.url='http://myblog.wordpress.org/xmlrpc.php'
wordpress.blogId=0
wordpress.username='myapp'
wordpress.password='grailsrocks'

Then, display a list of your WordPress categories:

<wordpress:getCategories />

or display the latest posts by saying:

<wordpress:getRecentPosts count="5" />

And so on… Read the full story on the plugin page at grails.org.

Diese Artikel könnten Sie noch interessieren:

  1. Grails Paypal plugin 0.3 released The Grails plugins project has accepted me as a committer....
  2. Grails-Plugin: iCalendar Builder iCalendar ist ein allgemein anerkanntes Format zur Übertragung von Kalender-Ereignissen...
  3. Released OpenID plugin V0.2 for Grails Today, I released version 0.2 of the OpenID plugin for...
  4. Grails Paypal Plugin V0.4 released Today, I released the Grails Paypal Plugin again, the new...
  5. Grails-Plugin: ReCaptcha Bei der Entwicklung von Webanwendungen möchte man sicherstellen, dass sich...

Ihre Meinung ist uns wichtig

*