Knowledgebase

Home » Item #305

Displaying the string of product page links at the top of the page as well as the bottom

Item: #305
Date: 9 Oct 2002
Applies to
v4

Question

How do I get the string of product page links to display at the top of each product page as well as the bottom?

Answer

This is not as easy as it may appear. In order to minimize the number of queries CactuShop runs per page, the way the product page is handled is that a single query pulls out versions and products and works through formatting the page. When it gets through all the versions of one product, it recognizes this and jumps to the next. Consequently it only knows exactly which page links are needed once it has reached the end of the page.

Adding links at the top would require effectively the same query twice, once to work out which page links were necessary at the top of the page and one to display the products and versions themselves.

Because of the way v5 pages query and display products, v5 does feature page links at top and bottom of pages. Upgrading to v5 is the simplest way to add this.

Can't find the answer you need? Click here to open a support ticket.

« Back