I'm setting up a new Drupal site and am wanting to have a lot of dynamic content based on a couple of tables that are separate from Drupal but in the same database. The two tables contain a list of products and their popularity, and a list of the 'categories' they belong in. These are imported into the tables using a file supplied to me daily.
I want to have on the site a top ten in each category, plus various other searches. I know how to do that no problem. I'm wanting to be able to link to a dynamic 'Product info' page by passing the product ID to it in the url, but I've got pathauto installed because I want search engine friendly urls, I'm not 100% sure how to go about it. There are thousands of products in the database so setting a page up for each product is out of the question.
Is it just a case of changing the .htaccess rewrite rules?
Could anyone point me in the right direction?
Comments
pathauto
Pathauto has an api that lets you develop automatic aliasing for your own custom content. You can find out more information in the API.txt file distributed with pathauto.
Hope that helps.
- China Business News & Observer -
Thank you
I've managed to knock up a module after doing a lot of reading tonight that enables me to pass parameters and generate a dynamic page, so the URLs is the only thing I need to do now. Thanks for that Maybourne I'll have a look there.