Gossamer Forum
Home : Products : DBMan : Discussions :

Re: one db with mulitple templates

Quote Reply
Re: one db with mulitple templates In reply to
(I applaud your use of the script! I like being part of anything to help our fuzzy friends. Smile)

Yes, it would be possible. You would need to be sure that all of the search results were from the same county. It would be best if you could require the county to be entered on the search form.

You mentioned "templates." Are you using the template mod? I don't know anything about that mod, so if you're using it, the rest of this post will be meaningless. Smile

If you're not using the template mod, make several copies of sub html_view_success -- one copy for each of the counties you're using -- and paste them all into the html.pl file. Leave one titled sub html_view_success and rename the others to sub html_county_success. (Subsitute the name of the counties for county.)

Delete all of the code in sub html_view_success. Replace it with

Code:

$sub = "html_$in{'County'}_success";
eval $sub;
Then make your changes for each county in its respective html_*_success subroutine.





JPD
Subject Author Views Date
Thread one db with mulitple templates Alvy 3875 Jun 3, 2000, 9:39 AM
Thread Re: one db with mulitple templates
JPDeni 3787 Jun 3, 2000, 11:53 AM
Thread Re: one db with mulitple templates
Alvy 3778 Jun 3, 2000, 3:01 PM
Post Re: one db with mulitple templates
JPDeni 3761 Jun 4, 2000, 3:06 AM