Hi
I have a catalog of items that can be modified by some members (i.e. each member has his own set of items). I want each member to upload files in a particular directory (e.g. catalog_idmember) . Can it be easily done ?
Please help
aida
Hi
I have a catalog of items that can be modified by some members (i.e. each member has his own set of items). I want each member to upload files in a particular directory (e.g. catalog_idmember) . Can it be easily done ?
Please help
aida
the member system includes the ability to specify a home folder where things can be uploaded.
Right, but the members accounts are created dynamically. So have to be their personal folders.
Contao does this by default using the member's name I think. You just have to choose the directory where all the user specific directories will be created.
If you need something more bespoke you could do this using a custom extension that uses the activateAccount hook.
This hook is called whenever an account is activated. Whenever an account is activated you could run some code that creates a directory for them using their id in the directory title.
It's the first hook here:
http://www.contao.org/en/hooks.html
Bookmarks