Notifications

3703 views

Description

Catalog item search within CMS is not functioning. URL is not getting generated and page is redirected to /.do.

Steps to Reproduce

 

  1. Edit CMS homepage.
  2. Add a dynamic content bloc.
  3. Edit the newly added content block.
  4. Select two phase.
  5. Copy the following content in the bloc
    <?xml version="1.0" encoding="utf-8" ?>
    <j:jelly trim="false" xmlns:j="jelly:core" xmlns:g="glide" xmlns:j2="null" xmlns:g2="null">
    <g:inline template="com.glideapp.servicecatalog_category_search.xml" />
    </j:jelly>
  6. Open the CMS homepage (preview, not edit).
  7. Type anything in the search box.
    Page not found error appears instead of the results.

Workaround

 

Within Eureka:

The CMS dynamic content block requires additional code to provide the same functionality as Dublin as shown in bold below:

<j:set var="sysparm_catalog" value="e0d08b13c3330100c8b837659bba8fb4"/>
<j2:set var="sysparm_catalog" value="e0d08b13c3330100c8b837659bba8fb4"/>
<j:set var="sysparm_catalog_view" value="catalog_default"/>
<j2:set var="sysparm_catalog_view" value="catalog_default"/>
<j:set var="sysparm_view" value="catalog_default"/>
<j2:set var="sysparm_view" value="catalog_default"/>
<g:inline template="com.glideapp.servicecatalog_category_search.xml" />

 

Within Fuji:

Replace the CMS dynamic content block inline template from:

<g:inline template="com.glideapp.servicecatalog_category_search.xml" />

To the tag:

<g:com.glideapp.servicecatalog_search type="searchField" catalog="e0d08b13c3330100c8b837659bba8fb4" />

Note that the catalog sys id may be hardcoded to a particular catalog, derived from a variable via a custom link, or omitted to search all catalogs.

Catalog sys_ids can be viewed via Maintain Catalogs as shown in image below:

 

 


Related Problem: PRB605683

Seen In

Calgary Patch 2
Dublin EA 6
Dublin EA 8
Dublin Patch 3 Hot Fix 1
Dublin Patch 7 Hot Fix 2
Eureka
Eureka Patch 1
Eureka Patch 1 Hot Fix 2
Eureka Patch 11
Eureka Patch 2
Eureka Patch 3 Hot Fix 1
Eureka Patch 4 Hot Fix 1
Eureka Patch 6
Eureka Patch 7
Eureka Patch 9
Fuji Patch 3
Fuji Patch 4 Hot Fix 4
Fuji Patch 9
Geneva Patch 3 Hot Fix 2
Geneva Patch 7
Geneva Patch 7 Hot Fix 2
Helsinki Patch 2
Helsinki Patch 4

Associated Community Threads

There is no data to report.

Article Information

Last Updated:2017-12-12 13:51:43
Published:2014-10-02