Gossamer Forum
Home : Products : Links 2.0 : Customization :

Change file name of detailed pages

Quote Reply
Change file name of detailed pages
Sorry if this is a dupe question. I have searched the forums for a while looking for this, and I didn't find anything usefull.

I have created a new field in my links.def to include a filename for the detailed page of each link. Now I just need to know how to add it to nph-build or whatever to create the detailed pages with the specified filenames.

What do I need to edit to do this?

Thanks,
Eric J. Griffin
Quote Reply
Re: [ActiveWebmaster] Change file name of detailed pages In reply to
in nph-build.cgi, go to sub build_detailed_view, line #692:
Code:
open (DETAIL, ">$build_detail_path/$id$build_extension") or &cgierr ("Unable to build detail page: $build_detail_path/$id$build_extension. Reason: $!");

If you've specified a full file name (including paths), then you'd just have ">$rec{FileName}" or whatever...

--Philip
Links 2.0 moderator
Quote Reply
Re: [King Junko II] Change file name of detailed pages In reply to
Thanks... got it!