Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Re: [qango] How to generate build_directory_field automatically from Full_Name

Quote Reply
Re: [qango] How to generate build_directory_field automatically from Full_Name In reply to
Quote:
add a second CUSTOM field for DISPLAY NAME that includes the foreign characters for display in the HTML
What you say is the Non-English field mod used in Links 2.0.
In Links SQL works differently. Full_Name field can contain almost any character, since it's the name of the category.
Until it contains just English chars & valid chars, the directories are based on Full_Name. Otherwise you have to use build_directory_field.

So why we need to use Full_Name:
1) Links SQL imports the Category field from Links 2.0 into Full_Name
2) The build_directory_field is exactly created for the task to contain valid directory paths
3) internally Full_Name is the main field in Links SQL, some tags are based on this field, like category_name_escaped or category_name. They are derived from Full_Name.
See the code in Links/Build.pm:
Code:
$display{category_name_escaped} = GT::CGI->escape ($category->{Full_Name});

I hope this answers your question.

Best regards,
Webmaster33


Paid Support
from Webmaster33. Expert in Perl programming & Gossamer Threads applications. (click here for prices)
Webmaster33's products (upd.2004.09.26) | Private message | Contact me | Was my post helpful? Donate my help...
Subject Author Views Date
Thread How to generate build_directory_field automatically from Full_Name lpa 4095 May 6, 2002, 12:58 PM
Post Re: [lpa] How to generate build_directory_field automatically from Full_Name
lpa 4004 May 21, 2002, 12:28 PM
Thread Re: [lpa] How to generate build_directory_field automatically from Full_Name
webmaster33 4011 May 22, 2002, 1:30 AM
Thread Re: [webmaster33] How to generate build_directory_field automatically from Full_Name
lpa 3981 May 28, 2002, 2:45 AM
Thread Re: [lpa] How to generate build_directory_field automatically from Full_Name
webmaster33 3922 Jan 15, 2003, 1:06 AM
Thread Re: [webmaster33] How to generate build_directory_field automatically from Full_Name
qango 3900 Jan 16, 2003, 1:12 AM
Thread Re: [qango] How to generate build_directory_field automatically from Full_Name
webmaster33 3904 Jan 16, 2003, 2:28 AM
Thread Re: [webmaster33] How to generate build_directory_field automatically from Full_Name
qango 3952 Jan 17, 2003, 12:38 AM
Post Re: [qango] How to generate build_directory_field automatically from Full_Name
webmaster33 3925 Jan 17, 2003, 1:12 AM