Gossamer Forum
Home : Products : DBMan : Customization :

view archives

Quote Reply
view archives
Just a quick question:

I've got the archive module installed and working. I would like to add a link to the footer that would allow the user to search and view the archive database (assuming they have view permissions) without first having to unarchive the records.

Thanks in advance for all your help.

Quote Reply
Re: view archives In reply to
You'll need to set up a .cfg file for the archive database. It should be just exactly like the one for the "regular" database, except that the $db_file_name would be archive.db. Name the new .cfg file archive.cfg.

Then your link would be something like

print qq!| <A HREF="$db_script_url?db=archive&uid=$db_uid&view_search=1">Search Archives</A> ! if ($per_view);