Changing the contents of the marketing activity template picker

When a business user starts creating a new Web or Dialog activity, the New Activity From Template window presents a list of templates. You can customize what business users see in this window, also known as the marketing activity template picker. For example, you can add a template folder or hide templates that you do not use.

WebSphere Commerce ProfessionalWebSphere Commerce EnterpriseDialog activities are available only in the Professional and Enterprise editions of WebSphere Commerce.

Before you begin

Review the following topics to ensure that you understand the properties view for the marketing activity template picker:

Procedure

  1. Open WebSphere Commerce Developer and switch to the Enterprise Explorer view.
  2. Complete one of the following steps:
    • WebSphere Commerce Version 7.0.0.0Feature Pack 1In the Enterprise Explorer view, expand LOBTools > WebContent > WEB-INF > src > lzx > commerce > marketing > propertiesViews.
    • Introduced in Feature Pack 2In the Enterprise Explorer view, expand LOBTools > WebContent > config > commerce > marketing > propertiesViews.
  3. Open the marketing activity template picker properties view file that you want to change:
    OptionDescription
    For Dialog activities
    • WebSphere Commerce Version 7.0.0.0Feature Pack 1DialogActivityTemplatePickerWizard.lzx
    • Introduced in Feature Pack 2DialogActivityTemplatePickerWizard.def
    For Web activities
    • WebSphere Commerce Version 7.0.0.0Feature Pack 1WebActivityTemplatePickerWizard.lzx
    • Introduced in Feature Pack 2WebActivityTemplatePickerWizard.def
  4. Customize the marketing activity template picker, as required. Here are a couple of examples:
    OptionDescription
    To hide a template within a folder from business users WebSphere Commerce Version 7.0.0.0Feature Pack 1
    1. Find the <wcfPropertyValuesFilter line for the folder that contains the template you want to hide. For example, the line for the Standard Templates folder for Web activities looks like this:
      <wcfPropertyValuesFilter displayName="${mktMarketingResources.standardTemplateFolder.string}" propertyName="activityId" values="10,20,30,40,50,70" />
    2. From the values attribute, remove the identifier that represents the template you want to hide. For example, if you remove the identifier 50, then the Promotion Recommendation template does not display in the template picker for Web activities.

      The identifier is the DMACTIVITY_ID value for the template in the DMACTIVITY table.

    Introduced in Feature Pack 2
    1. Find the PropertyValuesFilter element for the folder that contains the template you want to hide. For example, the element for the Standard Templates folder for Web activities looks like this:
      <PropertyValuesFilter displayName="${mktMarketingResources.standardTemplateFolder}" propertyName="activityId" values="10,20,30,40,50,70,80,85,90,95,100"/>
    2. From the values attribute, remove the identifier that represents the template you want to hide. For example, if you remove the identifier 50, then the Promotion Recommendation template does not display in the template picker for Web activities.

      The identifier is the DMACTIVITY_ID value for the template in the DMACTIVITY table.

    To create a new folder that contains some templates WebSphere Commerce Version 7.0.0.0Feature Pack 1
    1. Add a <wcfPropertyValuesFilter line to create the new folder.
    2. For the values attribute, specify the identifier of the templates you want to include in the folder.

      The identifier is the DMACTIVITY_ID value for the template in the DMACTIVITY table.

      For example, a folder that is called Holiday Templates and contains three templates might be defined like this:

      <wcfPropertyValuesFilter displayName="Holiday Templates" propertyName="activityId" values="100,105,320" />
    Introduced in Feature Pack 2
    1. Add a PropertyValuesFilter element to create the new folder.
    2. For the values attribute, specify the identifier of the templates you want to include in the folder.

      The identifier is the DMACTIVITY_ID value for the template in the DMACTIVITY table.

      For example, a folder that is called Holiday Templates and contains three templates might be defined like this:

      <PropertyValuesFilter displayName="Holiday Templates" propertyName="activityId" values="100,105,320" />
  5. Save and close the file.

What to do next

After you complete your customization:
Version Steps
  1. Right-click LOBTools Project; then click Build OpenLaszlo Project to produce an updated ManagementCenter.swf file under the workspace_dir\LOBTools\WebContent directory. This setting is the default environment setting.
  2. Test your changes by viewing them in the Management Center, using this URL: https://hostname:8000/lobtools.
  3. Deploy your changes to your production environment.
Introduced in Feature Pack 2
  1. Test your changes by viewing them in the Management Center, using this URL: https://hostname:8000/lobtools.
  2. Deploy your changes to your production environment.