Which categories will be displayed if a call is made on allRootCategories on catalog B?

You’ve made the following category assignments to your catalogs. Which categories will be
displayed if a call is made on allRootCategories on catalog B?
Catalog A:
rootCategories = category1, category2
Catalog B:
rootCategories = category3, category4
rootSubCatalogs = CatalogA

You’ve made the following category assignments to your catalogs. Which categories will be
displayed if a call is made on allRootCategories on catalog B?
Catalog A:
rootCategories = category1, category2
Catalog B:
rootCategories = category3, category4
rootSubCatalogs = CatalogA

A.
category1, category2, category3, catcgory4

B.
category3, category4 only

C.
category3, category4 areincluded, category1 and category2 may beincluded based on
configuration of catalog B.

D.
category3, category4 areincluded, category1 and category2 may beincluded based on
configuration of Catalog A.

Explanation:
allRootCategories lists of all the root categories in the catalog, including the
allRootCategories in the rootSubCatalogs. This is used for display purposes.
Note: Displaying Root Categories
Typically, a catalog home page displays a list of root categories. Unlike other categories, root

categories cannot be found through the childCategories property of other categories. Root
categories are those that appear in the allRootCategories property of the user’s catalog.
ATG Commerce Programming Guide, Catalog Properties



Leave a Reply 0

Your email address will not be published. Required fields are marked *