A need that has come up repeatedly with my clients is document management. EE can do this in a rudimentary fashion, but it’s really inadequate. Some years ago I wrote some code that works like this:
inspect_directory('/my-docs/') as my_directory
for each item in my_directory
check for matching row in DB_table
if matching row
SELECT * FROM DB_table
WHERE doc_filename = my_directory.filename
output results
else
display message "doc not yet entered"
end
end
It worked pretty well. Basically, you let the user dump whatever files they want in to a directory on the server (how the docs get there doesn’t matter). They you loop through them all and compare to the DB. Anything without a match is new, and the user then has to enter that document’s details. Otherwise display the standard stuff–filename, title, doc type, KB size, category, date entered, etc.
Also give the user the option to delete a doc right from this list.
Added to this is standard exp:weblog:entries behaviour so documents, and links to them, can be output in templates.
I’ve written this successfully in ColdFusion, but that was years ago and I don’t know much PHP–I prefer to focus on EE development.
Any interest in writing something like this? I know it would be worth $100+ for some of my clients.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.