Gossamer Forum
Home : Products : DBMan : Customization :

2nd short list

Quote Reply
2nd short list
Hi Group Wink

I would like to add a second short list which shows different fields. I want to call this short list from outside the dbman directory. I tried duplicating html_record, changed the name and link but only get failed search responses. Any ideas or just a plain solution?
Thanks in advance
Quote Reply
Re: 2nd short list In reply to
Could you please be a little more detailed when describing your problem? Maybe then I can help you.

Thanks

------------------
webmaster@racedaze.com
Quote Reply
Re: 2nd short list In reply to
Currently I use JPDeni's short list, when you click "list" all or use the search feature I get a short list displaying the records in short form. Click on the key field and I get the full record. What I would like to do is have another link which displays a different short list. Not the original one. This second short list would then work like the first. I'm just trying to display a second short list with different fields. What do you think? Smile
Quote Reply
Re: 2nd short list In reply to
I think this would work:

In your alternate link, add

&alt=1

somewhere in the link.

Then, in sub html_view_success, use

Code:
for (0 .. $numhits - 1) {
print "<tr>";
if ($in{'alt'}) {
&html_record_alt(&array_to_hash($_,@hits));
}
else {

&html_record (&array_to_hash($_, @hits));
}
print "</tr>";
++$i;
}

This is assuming your alternate "short" subroutine is called

sub html_record_alt

No guarantees, but it should work.

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





Quote Reply
Re: 2nd short list In reply to
Thank you so very much!
It worked perfectly the first time. No misses, No errors, All fun.