Re: Re: Re: Hi

Posts: 822
Joined: 11/05/2007
Bug FinderFAQ ModeratorGetting busy with the Ubercode.

The node-product.tpl.php posted in this thread has a problem in that it uses CSS IDs like this: <div id="node">. This may be fine when just one product is displayed on a page, but causes problems when multiple products are displayed (such as in the Product list view, or in the teasers at the default home page /node, etc.) because IDs are supposed to be unique to a page.

I strongly suggest that, if you're going to create your own node-product.tpl.php, you start with the default node.tpl.php and emulate how it handles this situation by assigning an ID based on the node number of the product.

--

<tr>.

Nifty Products Tutorial Part 1 By: mykz- (71 replies) Wed, 03/19/2008 - 20:04