Using the StoreFront Merchant Tools you can define a hierarchy of product categories. Each category has a name and a unique ID. A product can be assigned to one or more categories. For example, here is how a simple store with a handful of products might be arranged:
Standard StoreFront catalog pages are created by performing a search for a specific category. For example, to see the Books catalog page you would load the URL "SearchResult.aspx?CategoryID=1". Sometimes, you may need to create your own special catalog page. For example, you may create your own catalog page for books called Books.aspx or Books.html, or perhaps you want to create a special page of combines products in a way that can not easily be presented by the search templates. To have your catalog page show up in the BreadCrumbs control, you must do 2 things:
In this walkthrough you will create a custom catalog of books. The custom catalog page will be saved as Books.html. The name of the catalog will be "My Books".
| <html> <head> <title>My Books</title> </head> <body> This is a special collection of my books. Enjoy! <ul> <li><a href="detail.aspx?id=1">Book 1</a></li> <li><a href="detail.aspx?id=2">Book 2</a></li> </ul> </body> </html> |
| <sfaddons:BreadCrumbs id="BreadCrumbs1" runat="server"> <ItemTemplate> <asp:datalist id="BreadCrumbList" RepeatDirection="Horizontal" RepeatLayout="Flow" runat="server"> <ItemTemplate> <asp:HyperLink id="CatalogLink" runat="server" NavigateUrl='<%# DataBinder.Eval(Container.DataItem, "url") %>'> <%# DataBinder.Eval(Container.DataItem, "name") %> </asp:HyperLink> </ItemTemplate> <SeparatorTemplate> > </SeparatorTemplate> </asp:datalist> </ItemTemplate> <SeparatorTemplate><br></SeparatorTemplate> <Catalog CategoryID="5" Url="BookCollection.html" /> </sfaddons:BreadCrumbs> |

If you clicked on My Books, you would return the Books.html.
Copyright © 2003, Structured Solutions. All rights reserved.