Showing >300 products with unique ".html" URLs

Talk about writing modules and plugins for CMS Made Simple, or about specific core functionality. This board is for PHP programmers that are contributing to CMSMS not for site developers
Post Reply
User avatar
Augustas
Forum Members
Forum Members
Posts: 241
Joined: Wed Oct 17, 2007 6:09 pm
Location: the world

Showing >300 products with unique ".html" URLs

Post by Augustas »

Hello,

I want to use CMSMS for a website which has hundreds of products.
First, there are about 20 categories, and then each category contains 10-50 products.

Another requirement I have, is that each category page AND each product should have an URL with ".html/htm" extension without any IDs passed into url.
E.g.,
category-one.html
category-two.html
product-one.html
product-two.html
etc.
(of course, each URL address will have product/category name in it)

Each page will have a unique tex-ID.


By using CMSMS standard features, I am planing to create different pages for categories, but to have >300 pages covering all products, would be too uncomfortable to control via CMSMS stadard admin.

Each product has about 70 characteristics and there is a separate Admin for controling these values.
I am thinking of creating a CMSMS Module which would fetch information for one product.

My only worry is how to make sure that unique text IDs for category pages (created through CMSMS) would not overlap with unique text IDs of products.


One of the solutions I am thinking, is to have different URL extensions for Categories (".html") and different extensions for single product pages ".htm".

Then with Apache mod_rewrite I could rewrite Category Page requests to CMSMS index with "page":

Code: Select all

RewriteRule ^(.+).html$ index.php?page=$1 [QSA]
And for Single Product pages:

Code: Select all

RewriteRule ^(.+).htm$ index.php?mact=MyModule&productTextID=$1 [QSA]

Maybe somebody of you had similar projects, and could share ideas how to solve this task?

Thank you in advance for your advices.

Augustas
Last edited by Augustas on Wed Oct 17, 2007 11:40 pm, edited 1 time in total.
http://FollowTheRoad.com/ - living on the road...
http://www.kligys.com/ - asmeninis blog'as...
Post Reply

Return to “Developers Discussion”