Siebel Order Management Guide > Creating and Managing Catalogs >

Example Process of Creating Display Templates for Categories


Display templates control how catalog categories are displayed to the end user. A number of templates are available by default, as described in Creating Categories. You can also create custom display templates.

You create and edit display templates in Siebel Tools, and then add them to the Siebel eSales application using your employee application's administration screens.

The example shown in this process uses a display template called Product New, which uses a view called Product Catalog Category New Detail View (eSales).

For more information on creating Siebel views and applets, and on dynamic drilldown behavior, see Using Siebel Tools.

To create a new display template, perform the following tasks:

NOTE:  You must also add the view to the appropriate responsibilities, for example Siebel Administrator and Web Registered User.

Creating a Category Detail View

You create the view and add it to the Siebel eSales Catalog screen using Siebel Tools.

This task is a step in Example Process of Creating Display Templates for Categories.

To create a detail view for the new display template

  1. In Siebel Tools, lock the eCatalog project.
  2. Select the View object.
  3. Query for Product Catalog Category Detail View (eSales).
  4. Copy the record, and then give the copy a new name, for example Product Catalog Category New Detail View (eSales).
  5. Select the Screen object.
  6. Query for eSales Catalog Screen.
  7. Expand the Screen object, and then select Screen View.
  8. Add Product Catalog Category New Detail View (eSales) to the Screen Views list.

Adding the View to the Siebel eSales Catalog Screen

In Siebel Tools, use the standard method for adding the view to the Catalog screen. For more information, see Using Siebel Tools.

Creating Drilldown Objects for the View

You create drilldown objects for the view using Siebel Tools.

This task is a step in Example Process of Creating Display Templates for Categories.

To create drilldown objects for the view

  1. In Siebel Tools, select the Applet object.
  2. Query for Product Catalog RootSubCategory List Applet (eSales).
  3. Expand the Applet object, and then select Drilldown Object.

    The Drilldown Objects list appears.

  4. Copy the Product Basic record.
  5. In the new record, fill in the fields shown in the following table, leaving the rest the same as in Product Basic.
    Field
    Value

    Name

    Product New

    View

    Product Catalog Category New Detail View (eSales)

  6. Expand Drilldown Objects, and then select Dynamic Drilldown Destination.

    The Dynamic Drilldown Destinations list appears.

  7. Copy the Product Basic record.
  8. In the new record, fill in the fields shown in the following table, leaving the rest the same as in Product Basic.
    Field
    Value

    Name

    Product New

    Field

    Display Template Lang Indep Name

    Value

    Product New

    Sequence

    3

  9. Repeat Step 6 through Step 8 for the Product Basic and Product Rich drilldown objects.
  10. Repeat Step 2 through Step 9 for Product Catalog SubCategory List Applet (eSales).

Editing the Web Layout of the New Display Template

You edit the Web layout of the new display template using Siebel Tools, and then compile the project.

For more information on editing Web layouts, see Siebel Tools Reference.

This task is a step in Example Process of Creating Display Templates for Categories.

To edit the Web layout of the new template

  1. In Siebel Tools, select the View object.
  2. Query for Product Catalog Category New Detail View (eSales).
  3. Right-click on the view record, and then choose Edit Web Layout.

    The Web layout appears.

  4. Edit the layout, and then save it.
  5. Compile the .srf file, selecting the Locked projects radio button.

Adding the New Display Template to the Application

To add the new display template to the application, you must do the following in the Application Administration screen:

  • Add the display template to the List of Values.
  • Add its view to the Views list.
  • Add its view to the appropriate responsibilities in the Responsibilities list.

This task is a step in Example Process of Creating Display Templates for Categories.

To add the new display template and view to the application

  1. Navigate to the Application Administration screen, then the List of Values view.

    The List of Values appears.

  2. Add a new record.
  3. Fill in the fields in the following table.
    Field
    Value

    Type

    PROD_CTGY_DISPLAY_TEMPLATE

    Display Value

    Product New

    Language Independent Code

    Product New

    Language

    English-American

  4. Choose Views from the Show drop-down menu.

    The Views list appears.

  5. Add a new record.
  6. Fill in the fields in the following table.
    Field
    Description

    View Name

    Product Catalog Category New Detail View (eSales)

    Description

    Product Catalog Category New Detail View (eSales)

    Local Access

    Check the check box.

  7. Choose Responsibilities from the Show drop-down menu.
  8. Add Product Catalog Category New Detail View (eSales) to the appropriate responsibilities, for example Siebel Administrator.
  9. Restart the Siebel Server.
Siebel Order Management Guide Copyright © 2009, Oracle and/or its affiliates. All rights reserved. Legal Notices.