How do I disable templating and sitemesh for scaffold-enabled controllers? I want to display the full scaffold here, and my main template is screwing with this.
I think you want to rename the layout name used from the scaffolded views. After you did
grails install-templates
you have the template of the generated scaffolded pages (which you might have used, when you did grails generate-all *
). In the new folder src/templates/scaffolding/*.gsp
change the layout name to something like generatedMain
. I guess you know, but just to be sure:
<meta name="layout" content="generatedMain" />
Now restore the orginal main.gsp
and rename it to generatedMain.gsp
. Then regenerate your scaffolded views using grails generate-all *
.
At least, this is the way I did it in a couple of projects ;-)