Gossamer Forum
Home : Products : Links 2.0 : Customization :

& in category

Quote Reply
& in category
I just searched the form to see how to add a "&" into category titles instead of "and". I found several posts that said that the non-english mod was needed to accomplish this. But, I found one thread that listed the following solution:

1. Category.def

change
---------------------------------
Name => [1, 'alpha', 40, 75, 1, '', '^[\w\d/_-]+$'],
---------------------------------
to
---------------------------------
Name => [1, 'alpha', 40, 75, 1, '', '^[\w\d/_&-]+$'],
---------------------------------

2. Edit nph-build.cgi

change
---------------------------------
my $chrs = quotemeta ("/_-");
---------------------------------

to
---------------------------------
my $chrs = quotemeta ("/_&-");
---------------------------------


I just tried it, and it seems to work fine. Can anyone see any problems that may arise from using the above method as opposed to non-english mod?

Thanks
John

Quote Reply
Re: & in category In reply to
Nope...although the NON-ENGLISH MOD is more flexible since you can use accent marks and reserved Perl characters not only the & sign.

Regards,

Eliot Lee
Quote Reply
Re: & in category In reply to
Thanks Eliot :)