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

Confluence Plugin

(2)
Author(s) Karsten Breit
Current Release 0.2   (2 years ago)
Grails Version ?
Tags atlassian  cms  content  integration 
Dependency
compile ":confluence:0.2"
Last updated by kabtain 2 years ago
grails install-plugin confluence
Last updated by kabtain 2 years ago
The Confluence Plugin provides a GSP tag that works looks like this:

<cnf:page space="PUB" page="Confluence Plugin (Grails)">
a default text
</cnf:page>

This tag, provided by the plugin, uses the XML-RPC interface of a Confluence installation you have access to. It gets the rendered HTML content from there and puts it into your view. All you have to take care of is, provide the credentials in your Config.groovy.

de.kabtain.confluence.url = 'http://my.confluence'
de.kabtain.confluence.login = 'user'
de.kabtain.confluence.password = 'password'

For frequently used applications it's inappropriate to make an XML-RPC call each time the page is viewed. So the Confluence Plugin depends on the Springcache plugin 1.1.2 to cache the static content. To use caching only a few configurations are necessary, again in your Config.groovy:

springcache {
	cachingModels {
		confluenceCachePlain {
			cacheName = "CONFLUENCE_CACHE_PLAIN"
		}
        confluenceCacheHtml {
			cacheName = "CONFLUENCE_CACHE_HTML"
		}

} }

For more detailed configuration questions, just visit the Springcache plugin page.

Last updated by admin 2 years ago
Last updated by admin 2 years ago