1
HFS ~ HTTP File Server / Re: Recently Uploaded Files List?
« on: November 09, 2010, 02:44:00 AM »
Alright, I'm committed to this.
So just for testing purposes, I'll use a variable because that seems like it's easier.
In my macros I put:
This should now start logging the names of uploads into a sort of list with "variablerecentuploads" for a name, and each new item is represented by $1, $2, $3, etc. as I can sort of tell from the wiki?(http://www.rejetto.com/wiki/index.php/HFS:_scripting_commands#Variables_and_functions)
Now, assuming that's correct, in order for me to display this list, I am a little confused. Should I put something like this somewhere in my template?
Then follow with:
Is there something similar you could direct me to so that I could read up on this?
Thanks for your direction.
<3
So just for testing purposes, I'll use a variable because that seems like it's easier.
In my macros I put:
Code: [Select]
[upload completed]
{.set|variablerecentuploads|%item-name%
|mode=prepend.}
This should now start logging the names of uploads into a sort of list with "variablerecentuploads" for a name, and each new item is represented by $1, $2, $3, etc. as I can sort of tell from the wiki?(http://www.rejetto.com/wiki/index.php/HFS:_scripting_commands#Variables_and_functions)
Now, assuming that's correct, in order for me to display this list, I am a little confused. Should I put something like this somewhere in my template?
Code: [Select]
{{.^variablerecentuploads|$1.}}
to display the first "spot" on the list? Then follow with:
Code: [Select]
{{.^variablerecentuploads|$2.}}
{{.^variablerecentuploads|$3.}}
{{.^variablerecentuploads|$4.}}
etc... ?Is there something similar you could direct me to so that I could read up on this?
Thanks for your direction.
<3