Hello all.
I am new to links 2.0 but slightly comfortable with per. I am trying to use links to set up a database for steam railroads and stuff. One of the things I wanted to do was have it build detailed pages which I can get it to do. But since my girlfriend speaks spanish, I thought I would have it also build detailed pages in spanish, reading the same database. Since I am using templates it seemed simple to do.
First I created a detailed-spanish template.
Next I located in links.cgf where paths are assigned and created new paths for the new details.
Then I located in site-html the build page routine and created a duplicate sub to build pages.
(sub site_html_detailed)
Next I found in nph-build a build page routine
sub build_detailed_view and created a copy of this with all the changes needed to point to the new templates and paths.
nph-build however would not execute.
I backed out everything and rechecked it by doing one step at a time. I finally got it down to ANY changes to nph-build.cgi is causing it not to run. I even took a new copy of the program, inserted a single line between the header and the first line of code (a blank line) re-ftp'ed it, chmod to execute and it still will not run.
I know the this program could not be so unstable that a single line change whould crash it (it is only used on like 1000s of sites) so it must be me. Can anyone tell me what I did/am doing wrong?
Will gladly post the mod information for all if I can get this to work.
Thanks
John
steambuff
I am new to links 2.0 but slightly comfortable with per. I am trying to use links to set up a database for steam railroads and stuff. One of the things I wanted to do was have it build detailed pages which I can get it to do. But since my girlfriend speaks spanish, I thought I would have it also build detailed pages in spanish, reading the same database. Since I am using templates it seemed simple to do.
First I created a detailed-spanish template.
Next I located in links.cgf where paths are assigned and created new paths for the new details.
Then I located in site-html the build page routine and created a duplicate sub to build pages.
(sub site_html_detailed)
Next I found in nph-build a build page routine
sub build_detailed_view and created a copy of this with all the changes needed to point to the new templates and paths.
nph-build however would not execute.
I backed out everything and rechecked it by doing one step at a time. I finally got it down to ANY changes to nph-build.cgi is causing it not to run. I even took a new copy of the program, inserted a single line between the header and the first line of code (a blank line) re-ftp'ed it, chmod to execute and it still will not run.
I know the this program could not be so unstable that a single line change whould crash it (it is only used on like 1000s of sites) so it must be me. Can anyone tell me what I did/am doing wrong?
Will gladly post the mod information for all if I can get this to work.
Thanks
John
steambuff