Gossamer Forum
Home : Products : Gossamer Links : Discussions :

category file name

Quote Reply
category file name
instead of having the file name in each category as index.html, is there a way i can make the file name the same name as the category and lower case? this is really important for me, thanks.
Quote Reply
Re: [Gregorio] category file name In reply to
Hi,

No, not easily I'm afraid. It would require some custom modifications to accomplish this.

Cheers,

Alex
--
Gossamer Threads Inc.
Quote Reply
Re: [Gregorio] category file name In reply to
To expand that a little, the reason is that index.html is a file that can be specified in your apache httpd.conf file. To use different files, you'd have to have a massive list, and it just wouldn't work.

The changes Alex is referring to include, but are not limited to, changing the way the linking system/parser does the file names/paths, so that it uses a full path+file name not just a trailing /, as well as the code to do the actual replacements.

I'm not sure why you would want to do that.

If you have all your files as index.html, then you could call each directory as:

http://server_name.tld/path/to/sub_category

And your server will do a translation to add the /index.html to the end of the string automatically (this is standard http behavior, and actually has to be overridden to change)




PUGDOG� Enterprises, Inc.

The best way to contact me is to NOT use Email.
Please leave a PM here.
Quote Reply
Re: [Gregorio] category file name In reply to
so your saying that i can't have a page:

Category/category.html

instead it must be

Category/index.html

is that what you're saying? i just need one more confirmation on this, thanks.
Quote Reply
Re: [Gregorio] category file name In reply to
Well you can have:

Category1/category.html
Category2/category.html

But you can't have the file name based off the category name. It must be the same for all categories.

Cheers,

Alex
--
Gossamer Threads Inc.
Quote Reply
Re: [Alex] category file name In reply to
ok, well, would it be possible to trick the system some way into making a detailed page that looked exactly like the category page and had the same file name as the category, that way the detailed page looked like:


Category/category.html
Quote Reply
Re: [Gregorio] category file name In reply to
ok, got it to work, i'll post the code later