1) During validation the validation form seems to be printed via Tools.pm, is there a way to make it use the template and call a hook? I have written a plugin, it has a foreign key called VersionID to table called Version, rather than display the VersionID in the validate form I would like to display a drop down of all the versions with the current value selected.
2) I have a hook registered to interrupt jump.cgi and display a page of my own. The problem I have is that it doesn't display the page I want it to. I use the same code elsewhere, the only difference is that one part is called from within the admin dir and the second that doesn't work is called from outside. It 'use's the same files, and seems to have no problems finding them. I can display all the keys and values of the hash ref that I use with a print to the screen but the rest doesn't display.
Here is the basic code:
if($IN->param('ID')) {
# doing stuff in here to the hash ref
# all works fine
}
print $IN->header;
print Links::SiteHTML::display ('detailed', { %$link });
GT::Plugins->action(STOP);
Any help appreciated.
Thanks,
Tommy
2) I have a hook registered to interrupt jump.cgi and display a page of my own. The problem I have is that it doesn't display the page I want it to. I use the same code elsewhere, the only difference is that one part is called from within the admin dir and the second that doesn't work is called from outside. It 'use's the same files, and seems to have no problems finding them. I can display all the keys and values of the hash ref that I use with a print to the screen but the rest doesn't display.
Here is the basic code:
if($IN->param('ID')) {
# doing stuff in here to the hash ref
# all works fine
}
print $IN->header;
print Links::SiteHTML::display ('detailed', { %$link });
GT::Plugins->action(STOP);
Any help appreciated.
Thanks,
Tommy