Gossamer Forum
Home : Products : DBMan : Customization :

Whats New based on specific field

Quote Reply
Whats New based on specific field
hi,
I would like to ask if it is possible to do the following. I have a Whats New mod installed into my Dbman. I would like to show the latest 50 records for "male" and the latest 50 records for "female". (There is a field called "Sex" that is a drop down menu to choose either "male" or "female".)

could any one tell me how to do it??

Thanks in advance Smile
Quote Reply
Re: Whats New based on specific field In reply to
It's just a search, with an added field -- anyway the current mod is.

Create a form to do the search, including your select list for 'Sex'. Also include a hidden field

Code:
<input type="hidden" name="listnew" value="1">



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






Quote Reply
Re: Whats New based on specific field In reply to
Two suggestions:

1) Add a field for the New Records in your search form.

2) Hard-code links that will go to the newest records for each value of the field you want.

Example:

Code:
<a href="$db_script_link_url&Date-gt=
$new&view_records=1&Sex=male&sb=1&so=descend">New Male Records</a>

AND

Code:
<a href="$db_script_link_url&Date-gt=
$new&view_records=1&Sex=female&sb=1&so=descend">New Female Records</a>

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
Anthro TECH, L.L.C
anthrotech.com
* Check Resource Center
* Search Forums
* Thinking out of the box (codes) is not only fun, but effective.




[This message has been edited by AnthroRules (edited May 10, 2000).]
Quote Reply
Re: Whats New based on specific field In reply to
The way the What's New mod is set up now, what he would use is

Code:
<a href="$db_script_link_url&$listnew=1
&view_records=1&Sex=male&sb=1&so=descend&ww=1">New Male Records</a>
<a href="$db_script_link_url&$listnew=1
&view_records=1&Sex=female&sb=1&so=descend&ww=1">New Female Records</a>

The latest version of What's New does all of the computation within sub query.


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






Quote Reply
Re: Whats New based on specific field In reply to
THanks for both of your sugguestion
Smile

it works like a charm now!!

Thanks
Quote Reply
Re: Whats New based on specific field In reply to
Good...and you're welcome.

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
Anthro TECH, L.L.C
anthrotech.com
* Check Resource Center
* Search Forums
* Thinking out of the box (codes) is not only fun, but effective.