Gossamer Forum
Home : Products : DBMan : Customization :

Displaying New entries

Quote Reply
Displaying New entries
Is there anyway to display some of the fields of the newest entries on a page.

eg 5 most recent additions

And only display some of the fields, or have a link on the display so it links to the fields full data page.

Possibly using SSI so i can call it from my main page rather than the db itself.
Quote Reply
Re: Displaying New entries In reply to
To display the last 5 entries, you could probably use

<a href="$db_script_link_url"&mh=5&$db_key=*&sort=descend&view_records=1">

As for having a link on the display so it links to the fields full data page, see a thread called

Mod for different search results???

Someone else may have ideas on SSI.


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





Quote Reply
Re: Displaying New entries In reply to
If you are on a current version of Apache, you can just do:

<!--#include file="/path/to/dbman/db.cgi?uid=default&view_records=1&..."-->

and you can pass search options just like you would in the URL. However, you will need to modify your html.pl file so it doesn't print out <html> <head> <title> etc tags.

Cheers,

Alex