Creating Liferay Form via Client Extension Site Initializer Module

Greetings,

I have a requirement to create a Liferay forms using a Site Initializer. I would like to understand whether this can be achieved using a Client Extension Site Initializer module.

If anyone has experience or knowledge in implementing this approach, your assistance or guidance would be highly appreciated.

Regards,
Raja Mohamed

Hi Raja, You can find the description of what you need to do to create a Site Initializer Client Extension at https://learn.liferay.com/w/dxp/development/importing-exporting-data/site-initializers, and a sample workspace as a starting point at https://github.com/liferay/liferay-portal/tree/master/workspaces/liferay-sample-workspace/client-extensions/liferay-sample-site-initializer. You can check out existing site initializers like https://github.com/liferay/liferay-portal/tree/e2a7c58925ec8024f187bbaf9210cf54fd964d58/modules/apps/site-initializer/site-initializer-masterclass for comparison.

To create a form, you could use an object + a page with form fragments.

1 Answer

1

@rajamohamed07

I think it’s not possible to create Liferay forms using site initializer, I have checked BundleSiteInitializer.java but didn’t found anything.

Alternatively you can use Liferay Object with Form Container OOTB Fragment which does support site initializer and reduce any manual steps further