Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Change category folder name

Quote Reply
Change category folder name
When category have name like "my category" the name of the folder will be my_category the same is when using Rewrite and Change the name of the link form
www.abc.com/Detailed/123.htm to
www.abc.com/my_category/my_link_123/

Can I modify this so I will get folder name like my-category and link name like
www.abc.com/my-category/my-link_123/


Last edited by:

nir: Nov 11, 2004, 11:08 AM
Quote Reply
Re: [nir] Change category folder name In reply to
Try this;

http://www.sqlwidgets.com/...rces/Detailed/2.html

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Change category folder name In reply to
Hi Andy
Can I change the name of category form "my_catagory_1" to "my-catagory-1".
Quote Reply
Re: [nir] Change category folder name In reply to
Try adding;

Code:
$cat_url =~ s/\Q_/-/g;

AFTER;

Code:
my $cat_url = $DB->table('Category')->as_url($cat_full_name);

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Change category folder name In reply to
It change the name of the catgory when I in the Details page, but in the catgory pages it don’t work.
Quote Reply
Re: [nir] Change category folder name In reply to
Quote:
It change the name of the catgory when I in the Details page, but in the catgory pages it don’t work.

Thats becuse its only meant to change the category name on detailed pages ;)

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Change category folder name In reply to
Is there an option to change the name of the folders in the nph-build.cgi or in other way?
Quote Reply
Re: [nir] Change category folder name In reply to
Not with mod_rewrite. Otherwise page.cgi would get sent something like;

page.cgi?g=Some-test-category/foo-bar

...instead of;

page.cgi?g=Some_test_category/foo_bar

...which is what it would need to find the category in question.

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!