{"id":18,"date":"2008-08-17T19:55:20","date_gmt":"2008-08-17T14:25:20","guid":{"rendered":"http:\/\/www.tothenew.com\/blog\/?p=18"},"modified":"2015-07-10T13:32:42","modified_gmt":"2015-07-10T08:02:42","slug":"how-to-customize-homepage-in-grails-app","status":"publish","type":"post","link":"https:\/\/www.tothenew.com\/blog\/how-to-customize-homepage-in-grails-app\/","title":{"rendered":"How to customize homepage in Grails app"},"content":{"rendered":"<p>In this blog I want to share how can we customize home page while <a title=\"Grails App Development and Consulting\" href=\"http:\/\/www.tothenew.com\/grails-application-development\">developing a Grails application<\/a>.<\/p>\n<p>In <strong>grails<\/strong>, the default homepage is the web-app\/index.gsp if we explicitly don`t specify any thing; but of-course that is not sufficient for all apps. We need to have a custom landing page instead of the default page provided by grails.<\/p>\n<p>This can be easily achieved by modifying the URL mappings in <strong>UrlMappings.groovy file.\u00a0 <\/strong><\/p>\n<pre lang=\"groovy\">\"\/\"\r\n{\r\ncontroller = \"yourController\"\r\naction = \"yourAction\"\r\n}<\/pre>\n<p>By configuring the URLMappings this way, the home-page of the app will be yourWebApp\/yourController\/yourAction.<\/p>\n<p>Hope this helps.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this blog I want to share how can we customize home page while developing a Grails application. In grails, the default homepage is the web-app\/index.gsp if we explicitly don`t specify any thing; but of-course that is not sufficient for all apps. We need to have a custom landing page instead of the default page [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"iawp_total_views":4},"categories":[7],"tags":[4840,9],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts\/18"}],"collection":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/comments?post=18"}],"version-history":[{"count":0,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts\/18\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/media?parent=18"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/categories?post=18"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/tags?post=18"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}