Gossamer Forum
Home : Products : DBMan : Customization :

Long/Short display, plus the old default.

Quote Reply
Long/Short display, plus the old default.
I have the userfriendly Long/Short display mod installed.
Is there a way to also allow the original default method which displays all of the records in the long mode.

I think this would consist of adding a new subroutine right?
Quote Reply
Re: Long/Short display, plus the old default. In reply to
How would you determine which display the script would use?


------------------
JPD






Quote Reply
Re: Long/Short display, plus the old default. In reply to
I think a link would be satisfactory. I may do another search subroutine later, but for now a link would work. &all_long=1 or something.
Quote Reply
Re: Long/Short display, plus the old default. In reply to
This would require quite a reworking of the mod. I set it up to be as "error-proof" as I could. It would require taking out all the error-proofing. I don't even know where to start.

Actually, the thing that I can think of would be to have both the short/long html.pl file and the regular one in your directory. Name the regular one "reg_html.pl" or something. Then, in your .cfg file, instead of

Code:
require $db_script_path . "/html.pl";

use

Code:
if ($in{'all_long'}) {
require $db_script_path . "/reg_html.pl";
}
else {
require $db_script_path . "/html.pl";
}

That way, you can have the best of all worlds.


------------------
JPD








[This message has been edited by JPDeni (edited April 25, 2000).]