Gossamer Forum
Home : Products : DBMan : Installation :

Point to directory of files w/matching db info?

Quote Reply
Point to directory of files w/matching db info?
I am wondering how to use dbman as the front end for a directory of files (not images -- *.pdfs).

The db itself will contain title, owner, revision date, some keywords, etc...but I'd like to add an option to "Click to View" the matching pdf.

I already have dbman running with the "short vs. detailed" view (sortable, even!), so I'm familiar with making some fair mods to dbman.

Anybody have a good strategy for this? And how would I find/write the URLs to the files?

------------------
Monghidi
http://www.canopydigital.com/clients/GABON-RPCVS/index.html
Quote Reply
Re: Point to directory of files w/matching db info? In reply to
I would just store the filename as one of the database fields. Then when outputting the information:

<a href="/path/to/pdfs/$rec{'Filename'}">Click to view!</a>

Hope this helps,

Alex