Generic steps for AEM Forms workspace customization
- Applies to:
- Experience Manager 6.5 LTS
CREATED FOR:
- User
- Developer
The generic steps to perform any customization are:
-
Log in to CRXDE Lite by accessing
https://'[server]:[port]'/lc/crx/de/index.jsp. -
Create a
sling:Folderfolder that is namedwsat/apps, if it does not exist. To create asling:Folderfolder, right-click theappsfolder and select Create > Create Node. Specify the name asws, select type assling:Folder, and click OK. Click Save All. -
Browse to
/apps/ws, and navigate to the Access Control tab. -
Select the Repository option. In the Access Control list, click + to add an entry. Click + again.
-
Search and select the PERM_WORKSPACE_USER Principal.
-
Give
jcr:readprivilege to the Principal. -
Click Save All.
-
Copy the
GET.jsp,index, andhtml.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.<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 folder namedcss. -
In the
cssfolder, create a file namednewStyle.css. -
Open
/apps/ws/html.jsp and change from
<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
<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
Place the entry of the user-defined CSS file after the entry of style.css, as shown above. -
-
In the /apps/ws/html.jsp file, change from
<script data-main="js/main" src="js/libs/require/require.js"></script>to
<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. -
Copy
/libs/ws/js/libs/jqueryuifolder to/apps/ws/js/libs. Click Save All.
-
-
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.
-
-
Click Save All, clear the cache, and refresh the 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.