Sitemap Generator - Is It Possible to Replace Property Tags with More than One Value for the Same Property? (Doc ID 2101026.1)

Last updated on FEBRUARY 02, 2016

Applies to:

Oracle Commerce Guided Search / Oracle Commerce Experience Manager - Version 11.1 and later
Information in this document applies to any platform.

Goal

Question

When using the Oracle Commerce Sitemap Generator, is it possible to add more than one property value of like-named properties to a list of values in the detail links?

In the examples within the documentation, and in testing if a record is tagged with a property more than once, with more than one value, only one value is displayed.

Example Case

Configuration File: conf.xml

<QUERY_FIELD_LIST>
  <QUERY_FIELD>product.name
  <QUERY_FIELD>product.category
  <QUERY_FIELD>product.brand.name
  <QUERY_FIELD>sku.repositoryId
  <QUERY_FIELD>product.repositoryId
  <QUERY_FIELD>allAncestors.repositoryId
</QUERY_FIELD_LIST>

Configuration File: xml_template.xml

<DETAIL_LINK>
    <![CDATA[
        <sku>
            <loc>http://localhost:8006/discover/detail**FORMATTED_URL|XmlEscape**</loc>
            <id>**sku.repositoryId**</id>
            <parent-product>**product.repositoryId**</parent-product>
            <categories>
                <category>**allAncestors.repositoryId**</category>
            </categories>
        </sku>
    ]]>
</DETAIL_LINK>

Data from MDEX via Orange JSP Ref App

allAncestors.displayName: Men
allAncestors.displayName: Shorts
allAncestors.repositoryId: catMen
allAncestors.repositoryId: catMenShorts
allAncestors.repositoryId: rootCategory

Desired Output

<sku>
    <loc>http://localhost:8006/discover/detail/_/A-clothing-sku-sku40180..prod20017.masterCatalog.en__US.salePrices__listPrices</loc>
    <id>sku40180</id>
    <parent-product>prod20017</parent-product>
    <categories>
        <category>catMen</category>
        <category>catMenShorts</category>
        <category>rootCategory</category>
    </categories>
</sku> 

Solution

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms