Common Customization Examples
- Use a custom common file (image, CSS style sheet, etc.)
- Copy the file to or create the file in the cw_common/custom directory or a subdirectory in your CW install and make the modifications – make sure the custom file has the same name as the original file.
- Login to CW to see changes. The new file will be automatically used.
- Example 1 – Copy CWStyle.css from cw_common/standard/css to cw_common/custom/custom_test and make modifications. Login to CW to see changes.
- Example 2 – Create login.jpg in cw_common/custom/custom_test. Login to CW to see changes.
- Use a custom version of a CW file or CW Tool File
- Copy the file to or create the file in the custom directory or a subdirectory in your install for CW or the appropriate tool and make the modifications – make sure the custom file has the same name as the original file.
- Login to CW to see changes. The new file will be automatically used.
- Example 1 – Copy CWAssignListView.jsp from cw/standard/code to cw/custom/custom_test and make modifications. Login to CW to see changes.
- Create a web custom tool (e.g.,
unlockTree)- In pcmadmin, create a new web tool. In the tool command line, put the URL for your tool.
- Example command line:
prog cw_common\custom\unlockTree\unlockTree.jsp
- Example command line:
- Put the code in a unique subdirectory under custom. Example directory path: cw_common/custom/unlockTree
- Assign a CW web application id to the tool to be used in the CW Framework API. Example application ID:
cw_unlockTree - Develop the JSP. Use other tools as models.
- In pcmadmin, create a new web tool. In the tool command line, put the URL for your tool.