Generic steps for AEM Forms workspace customization generic-steps-for-aem-forms-workspace-customization
The generic steps to perform any customizations are:
-
Log in to CRXDE Lite by accessing
https://[server]:[port]/lc/crx/de/index.jsp. -
Create a folder named
wsat/apps, if it does not exist. Click Save All. -
Browse to
/apps/ws, and navigate to the Access Control tab. -
In the Access Control list, click + to add a new entry. Click + again.
-
Search and select the PERM_WORKSPACE_USER Principal.
-
Give
jcr:readprivilege to the Principal. -
Click Save All.
-
Copy the
GET.jspandhtml.jspfiles from the/libs/wsfolder to the/apps/wsfolder. -
Copy the
/libs/ws/localesfolder in the/apps/wsfolder. Click Save All. -
Update the references and relative paths in the
GET.jspfile, as shown below, and click Save all.code language-none <meta http-equiv="refresh" content="0;URL='/lc/apps/ws/index.html'" /> -
Do the following for CSS customizations:
- Navigate to the
/apps/wsfolder and create a new folder namedcss. - In the
cssfolder folder, create a new file namednewStyle.css. - Open
/apps/ws/html.jsp and change from
code language-css <link lang="en" rel="stylesheet" type="text/css" href="css/style.css" /> <link lang="en" rel="stylesheet" type="text/css" href="css/jquery-ui.css"/>to
code language-css <link lang="en" rel="stylesheet" type="text/css" href="../../libs/ws/css/style.css" /> <link lang="en" rel="stylesheet" type="text/css" href="css/newStyle.css" /> <link lang="en" rel="stylesheet" type="text/css" href="../../libs/ws/css/jquery-ui.css"/>note note NOTE Place the entry of the user-defined CSS file after the entry of newStyle.css, as shown above. - Navigate to the
-
In the /apps/ws/html.jsp file, change from
code language-css <script data-main="js/main" src="js/libs/require/require.js"></script>to
code language-css <script data-main="js/main" src="../../libs/ws/js/libs/require/require.js"></script> -
Do the following:
- Create a folder named
jsat/apps/ws. Click Save All. - Create a folder named
libsat/apps/ws/js. Click Save All. - Create a folder named
jqueryuiat/apps/ws/js/libs. Click Save All. - Copy
/libs/ws/js/libs/jqueryui/jquery.ui.datepicker-ja.jsto/apps/ws/js/libs/jqueryui. Click Save All.
- Create a folder named
-
Do the following for HTML customizations:
- Under
/apps/ws/js, create a folder namedruntime. Click Save All. - Under
/apps/ws/js/runtime, create a folder namedtemplates. Click Save All. - Copy
/libs/ws/js/main.jsto/apps/ws/js/main.js. - Copy /libs/ws/js/registry.js to
/apps/ws/js/registry.js.
- Under
-
Click Save All, clear cache, and refresh AEM Forms workspace.
Access the URL
https://[server]:[port]/lc/wsand log in with administrator/password credentials. The browser redirects tohttps://[server]:[port]/lc/apps/ws/index.html.