IBM



6.2 Create a customized asset store

Follow these steps to create the custom asset store:

1. Select either the B2BDirectStorefrontAssetStore.sar or the ConsumerDirectStorefrontAssetStore.sar. (We selected the ConsumerDirectStorefrontAssetStore.sar.)

2. Make a copy of the selected file.

3. Move it to the development workstation.

4. Unpack the store archive file into a working directory.

5. Import the assets into the development environment.

6. Modify the JSP pages as needed.

7. Modify the XML files requiring customization in the sar file.

8. Several files must be customized that contain data that identifies the store archive file and provides publishing parameters.

a. Open the following file in a text editor:

working_directory\WEB-INF\stores\StoreAssetsDir\data\ForeignKeys.DTD

b. Search for lines that look like these (the values will be different if you are working with the B2B direct store):

<!ENTITY STORE_IDENTIFIER_RPS "ConsumerDirectStorefrontAssetStore">

<!ENTITY STORE_DIR "ConsumerDirectStorefrontAssetStore">

c. Change the values to match the new asset store name; for example:

<!ENTITY STORE_IDENTIFIER_RPS "CustomB2CStorefrontAssetStore">

<!ENTITY STORE_DIR "CustomB2CStorefrontAssetStore">

d. Save and close the file.

e. Open the following file in a text editor:

working_directory\WEB-INF\stores\StoreAssetsDir\data\Keys.DTD

f. Change the value of STORE_IDENTIFIER_RPS to match the value that you entered in the previous file.

g. Save and close the file.

9. Repackage the sar file.

10. Copy the updated sar file to the following directory:

WC_INSTALL\starterstores\ExtendedSites


Redbooks
ibm.com/redbooks


+

Search Tips   |   Advanced Search