Page 1 of 1

Uploads module: Show logged in user’s uploads

Posted: Sun Mar 16, 2014 7:02 pm
by 10010110
How would I go about showing a logged in user a list of their uploads? In the help I’ve found this:
key="value" - Provide an additional key to the module for further organizing uploads. This key could be an encoded string like: 'feusers:uid', etc.
How does that work? Is it {Uploads key="feusers:uid"}? And how does the module know what to do with that?

Or am I on the totally wrong track here?

Re: Uploads module: Show logged in user’s uploads

Posted: Tue Mar 18, 2014 10:37 pm
by psy

Re: Uploads module: Show logged in user’s uploads

Posted: Fri Mar 21, 2014 10:10 am
by 10010110
Thanks psy, but that’s not what I need.
I played around with the key parameter to no avail so far. It’s not showing anything so either it does never match anything or it’s broken altogether.

I’ve tried (as it is suggested in the module help):

Code: Select all

{Uploads category="Member uploads" mode="summary" key="feusers:$userID"}
{Uploads category="Member uploads" mode="summary" key="feusers:1"}
{Uploads category="Member uploads" mode="summary" key="1"}
But nothing shows up.
Do I need to modify something in the template to make that work?

Re: Uploads module: Show logged in user’s uploads

Posted: Fri Mar 21, 2014 10:19 am
by psy
Maybe look at it from another angle.

When an FEU uploads at file, have a hidden field write the FEU id to a custom field.

Then in the tag to display uploads by user, use:

Code: Select all

(optional) fieldname="" - -- Missing Languagestring - module:Uploads string:param_fieldname--
(optional) fieldval="" - -- Missing Languagestring - module:Uploads string:param_fieldval--


where fieldname is your custom feu id field name and fieldval is the feu id?