the detailed_url is set in the display link routine in SiteHTML.pm
Code:
# Set the detailed_url.
if ($CFG->{build_detailed}) {
$rec->{detailed_url} = "$CFG->{build_detail_url}/${$rec}{'ID'}$CFG->{build_extension}";
}
if you are using dynamic pages, this is then modified by the template parser.
There are a number of ways to go about solving this problem, the "best" way depends on your use, and needs.
Because this is a need localized to the detailed.html, you'd be better off creating a small function to call, and created the "detailed_url" variable. The reason is that "ID" can be different things at different times, depending on what database record you have.
The easiest way, but not portable, is just to copy that code into the detail page display routine, above the block where it checks for dynamic pages.
Part of the widgets plugin (the other plugin I'm still working on) is set to allow adding callable routines to a basic shell. This would allow simple creation of code fragments that can be called by other programs/templates.
No release date on this plugin any more, but it shouldn't be too long, since it's something I'm developing/finalizing for my own software needs, to standardize function calls and availability across all my sites.
I've got the domains perlwidgets.com and sqlwidgets.com and linkswidgets.com so it will probably be released under one of those names.
It will replace the previously described "utils".
PUGDOG� Enterprises, Inc. The best way to contact me is to
NOT use Email.
Please leave a PM here.