Essential ATG Dynamo Training - Got atg Certified Relationship Management Developer?
This is not an official ATG site: ATG, Dynamo, Scenario Server and Personalization Server are trademarks or registered trademarks of Art Technology Group
Articles Exercises Resources Links Search

DropBreadcrumbs.jhtml

Drop Breadcrumbs, this section updates the CatalogNavHistoryCollector with the parameters from the calling page. In effect telling the collector where we are. The params we set in the URL link as params in the anchor tag.

<!-- Title: Drop Breadcrumbs Page -->

<DECLAREPARAM NAME="categoryObj" CLASS="atg.repository.RepositoryItem" DESCRIPTION="">

<JAVA>
/*
    Update the CatalogNavHistory component with our current location. We will
    use the category, navAction and navCount parameters passed to the page that
    embeds this fragment in conjunction with the CatalogNavHistoryCollector
    component to update the internal state of the CatalogNavHistory component.

    NOTE: If the back button was detected, the CatalogNavHistory component doesn't
    just pop the breadcrumbs for the pages backed over, it actually clears the
    stack and generates a new one to the current page using the default parent
    property of the catalog.
*/
</JAVA>
<droplet bean="/atg/commerce/catalog/CatalogNavHistoryCollector">
  <param name="item" value="param:categoryObj">
  <param name="navAction" value="param:navAction">
  <param name="navCount" value="param:navCount">
</droplet>


Technical Training Advertise your Training Programs for Free! Los Angeles Web Design Shopping Cart Software  Form a Corporation