Hello,
I'm using Grails 1.1 and the navigation plugin 1.0.4 and just bumped into a problem. I want to have actions from 3 different controllers contribute as subitems to a menu from a different controller.
All examples I saw use the basic case of main menu and subitems directing to actions inside same controller.
I have tried to use a totally separated controller just for the sake of decalring the navigation there, using redirects for the subitems (see below). But in that case, the subitems just don't render.
class ResourceNavController {
// Navigation
static navigation = [ group:'modules', order:100, title:'Test', action:'listResources',
subitems: [
[group:'modules', order:10, title:'Resources', action:'listResources'],
[group:'modules', order:20, title:'Environments', action:'listEnvironments'],
[group:'modules', order:30, title:'Settings', action:'listSettings']
]
]
def listResources = {
redirect(controller:"resource",action:"list")
}
def listEnvironments = {
redirect(controller:"environment",action:"list")
}
def listSettings = {
redirect(controller:"setting",action:"list")
}
}
Any clue?
Thanks, Rollo