Gossamer Forum
Home : Products : Links 2.0 : Customization :

Category - Upper Case, but link - lower case....anyone know how to do this?

Quote Reply
Category - Upper Case, but link - lower case....anyone know how to do this?
Hi All

The default way of building pages is to use the Category Name as part of the URL.

Car_Parts
http://www.yoursite.com/Car_Parts

Instead, it would be great if we could have the URLs all be lower case, but keep the upper case categories

Car_Parts
http://www.yoursite.com/car_parts

Is there a way to do this?

Perhaps a new field could be added to the db and hacked into the build routine?

Many thanks Smile
Quote Reply
Re: [DogTags] Category - Upper Case, but link - lower case....anyone know how to do this? In reply to
couldn't you just use the PERL lower case function ( lc ) to convert the url to lower case?


Gene
"The older I get, the more I admire competence, just simple competence in any field from adultery to zoology."

Last edited by:

esm: Jan 29, 2003, 11:42 AM
Quote Reply
Re: [DogTags] Category - Upper Case, but link - lower case....anyone know how to do this? In reply to
Well! you have more than one option:

1 - Search for a mod for Category Title and install it.
Now, you can create a category called cool_cars, and in the new extra field of the database enter the category title as: Cool Cars and this will appear in your site as: Cool Cars, but when you click on it it will go to .../cool_cars.

2 - the other solution is to install a case conversion code in your site to route the URL to the right case (search for it maybe in hotscripts.com)... if you know what I mean: click on:
http://www.cnn.com/world
and you will see the case does not matter...

goooooood luck
Mark

Last edited by:

Mark2: Jan 29, 2003, 11:16 AM
Quote Reply
Re: [DogTags] Category - Upper Case, but link - lower case....anyone know how to do this? In reply to
Check out the non-English mod in the resources section. This adds an extra field to the database for alternative category names.

i.e. The physical directory could be car_parts/gm and the category name displayed as Car Parts/General Motors on the page.

It was really created so users could use non-English characters (which can't be used in directory names) in the category description, but it should also allow you to do what you want.
Quote Reply
Re: [wysardry] Category - Upper Case, but link - lower case....anyone know how to do this? In reply to
Thanks, everyone. I appreciate your help Smile

------------------------------------------