Hi everybody, I'am migrating my Grails 2.5 (yes i ...
# questions
o
Hi everybody, I'am migrating my Grails 2.5 (yes i know...) project to Grails 6.2.0 The layout (via the tag <meta name="layout" content="main">) is applied when a controller method is called directly def index(){ render view:'index'} but not when it called via g.include(action:'index') the page is rendered but with no layout It worked in 2.5 grails version. Your help should be very appreciated 😊 Olivier
1
I found a workaround, it works with the tag
Copy code
<g:applyLayout name="myLayout">
instead of the meta tag...
m
You can try to use layout parameter in the include tag
o
Thank you @Michael Yan, it was one of my tries (with g.render()), it did not work... I just tried with include, it did not work too, it seems there is no param layout for the tag include.
m
@Oliv05 Are you sure it works in 2.5 version? I have tried it in Grails 2.5.6, but the result is not as you said.
o
My version was 2.5.0, but, <g:applyLayout name="myLayout"> works well, so that's nice ! 🙂 thank's for your help
m
@Oliv05 I think this is related to https://github.com/grails/grails-core/issues/1168
🙏 1