Front End File Management (Uploads) and Event Manager

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
User avatar
tophers
Forum Members
Forum Members
Posts: 218
Joined: Thu Jun 07, 2007 7:25 pm

Front End File Management (Uploads) and Event Manager

Post by tophers »

We've built a site that is a secure, password-protected document repository, with access to documents controlled by membership in FEU group. Uploads has Categories that correspond to these FEU Groups. Combined with some additional user Properties we can show some users documents from multiple Categories, and the client is thrilled. I should note that this is the second iteration of this site - the multi-category feature was recently added.

The latest request is for a member of a group to be notified when a document is uploaded to their category. The Uploads module is only being used by site administrators to upload files for client viewing - the end clients (FEUsers) do not upload documents themselves. The wish to be notified when an admin person uploads to their category - basically a 'hi, we just uploaded new stuff for you!' notification.

I think I need a combination of a UDT with the Event Manager, along with some tweaking of FEU, to handle this, but I'm not sure I'll have access to enough information to produce the desired result. Here's what I envision:

1. A new FEU User Property is added (something like 'notify'), that will be used to denote the person to receive email notifications.

2. A UDT will look to see:
a. What Category the file was Uploaded to
b. Look within the corresponding Group in FEU for a user with the 'notify' flag
c. extract their email address
d. email them that a new file (along with it's particulars, like name and various field defs) has been uploaded.

Is this even possible? Any help is appreciated!
User avatar
Jo Morg
Dev Team Member
Dev Team Member
Posts: 1968
Joined: Mon Jan 29, 2007 4:47 pm

Re: Front End File Management (Uploads) and Event Manager

Post by Jo Morg »

It should be relatively simple: You need to tie an UDT to the Uploads event OnUpload. There are a few useful parameters the event passes to the triggered UDT, category being one of them. So, 2) is easy to be accomplished from this point on.
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
Post Reply

Return to “Modules/Add-Ons”