Its simple site but its made in best CMS.
Its simple site but its made in best CMS.<a href="[[++assets_url]]albums/[[+modx.user.id:userinfo=`username`]]">Download your album</a>
If you name the album for the user: username.pdf and put it in the assets/albums/ directory, this might work:
<a href="[[++assets_url]]albums/[[+modx.user.id:userinfo=`username`]]">Download your album</a>
You can redirect users to the page with the code above using the &loginResourceId property in the Login tag.
The downside is that others could download someone else's album if they could guess the URL.
You could make it more secure by adding a hash based on some user data like email, fullname, id, etc. to the file name and using a custom snippet to produce the link, but you'd have to calculate the hash for each user and use it to rename the album. It might be possible to do this automatically when you upload the album.
Its simple site but its made in best CMS.
Its simple site but its made in best CMS.I'd suggest maybe looking into 'upload to users' packageThanks. Going to Check this out.
Its simple site but its made in best CMS.Quote from: lkfranklin at Jan 04, 2018, 09:57 AMHello my requirements changed. Please check my 2nd last post.I'd suggest maybe looking into 'upload to users' packageThanks. Going to Check this out.
Its simple site but its made in best CMS.&loginResourceId=`[[++login_page_id]]`