{"id":29,"date":"2018-05-21T16:31:03","date_gmt":"2018-05-21T14:31:03","guid":{"rendered":"https:\/\/www.rothamel.com\/?p=29"},"modified":"2018-05-30T07:45:52","modified_gmt":"2018-05-30T05:45:52","slug":"how-can-all-new-users-get-equal-page-structures","status":"publish","type":"post","link":"https:\/\/www.rothamel.com\/index.php\/2018\/05\/21\/how-can-all-new-users-get-equal-page-structures\/","title":{"rendered":"Liferay: How can all new users get equal page structures"},"content":{"rendered":"<p>A little how-to for Liferay dev:<\/p>\n<p>1) Define page structures for that area (public or private) you want to have equal.<br \/>\n2) Export them into a lar file<\/p>\n<p>-&gt;do not export Groups \/ Roles otherwise you can\u2019t remove groups on your system that<br \/>\nexisted on your system when the lar file was exported. The will be recreated every<br \/>\ntime when a new user is created.<\/p>\n<p>3) Add configuration to your portal-ext.properties:<\/p>\n<pre>default.user.public.layouts.lar=${liferay.home}\/&lt;folder-for-your-template&gt;\/default.public.user.public.lar\nlayout.user.public.layouts.enabled=true\nlayout.user.public.layouts.modifiable=true\nlayout.user.public.layouts.auto.create=true<\/pre>\n<p>or the same for private layouts\u2026<\/p>\n<p>Restart server and be happy \ud83d\ude09<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A little how-to for Liferay dev: 1) Define page structures for that area (public or private) you want to have equal. 2) Export them into a lar file -&gt;do not export Groups \/ Roles otherwise you can\u2019t remove groups on your system that existed on your system when the lar file was exported. The will [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-29","post","type-post","status-publish","format-standard","hentry","category-liferay"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.rothamel.com\/index.php\/wp-json\/wp\/v2\/posts\/29","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rothamel.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rothamel.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rothamel.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rothamel.com\/index.php\/wp-json\/wp\/v2\/comments?post=29"}],"version-history":[{"count":2,"href":"https:\/\/www.rothamel.com\/index.php\/wp-json\/wp\/v2\/posts\/29\/revisions"}],"predecessor-version":[{"id":46,"href":"https:\/\/www.rothamel.com\/index.php\/wp-json\/wp\/v2\/posts\/29\/revisions\/46"}],"wp:attachment":[{"href":"https:\/\/www.rothamel.com\/index.php\/wp-json\/wp\/v2\/media?parent=29"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rothamel.com\/index.php\/wp-json\/wp\/v2\/categories?post=29"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rothamel.com\/index.php\/wp-json\/wp\/v2\/tags?post=29"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}