If I had a folder with a series of subfolders that matched the username, could I show those files to that specific user? Looking to try making a download portal, but the files are not small enough to be uploaded through PHP. Example:
File Manager Settings:
/home/www/files/
Assets Folder tag: parent_folder="{filedir_x}"
But I wanted to show a single folder in the files directory:
/home/www/files/{username}
Assets Folder tag: parent_folder="{filedir_x}{username}"
The entire tag would look like this:
{exp:assets:folders parent_folder="{filedir_20}admin" recursive="yes"}
<h3>{folder_name}</h3>
<ul>
{exp:assets:files folder_id="{folder_id}"}
<li><a href="{url:huge}" target="_blank">{if title != ""}{title}{if:else}{filename}{/if}</a></li>
{/exp:assets:files}
</ul>
{/exp:assets:folders}
Using just {filedir_x} worked, but adding {filedir_x}{username} did not. Is it possible without using entries and just the two Assets tags? And I would assume from previous posts that if it could, it would show all files as a flat list, and not nested within subfolders?