Hi, I need to be able to force a category for a user upload.
In the menu link generated for the index.php?option=com_phocadownload&view=user is there an option to pre-select the category for the file upload, for example: index.php?option=com_phocadownload&view=user&catid=40
Is this possible?
Forcing category for user upload
- Benno
- Phoca Hero
- Posts: 9435
- Joined: 04 Dec 2008, 11:58
- Location: Germany
- Contact:
Re: Forcing category for user upload
Hi,
In Phoca Download you (Super User) can give one or more users upload rights for one or more categories. If this user wants to upload one or more files via UCP, he can only do so in the category for which you have given him upload rights. The user cannot create a category or categories themselves.
Kind regards,
Benno
In Phoca Download you (Super User) can give one or more users upload rights for one or more categories. If this user wants to upload one or more files via UCP, he can only do so in the category for which you have given him upload rights. The user cannot create a category or categories themselves.
Kind regards,
Benno
-
- Phoca Newbie
- Posts: 5
- Joined: 12 Oct 2017, 13:01
Re: Forcing category for user upload
Hi Benno, thanks for the reply.
This is not a matter of restriction it is a matter of forcing the upload to occur into a specified category. Currently the user upload user interface simply presents a list of categories in a drop down box. I want a view that will only load into the category where I want the users file to be uploaded...
This is not a matter of restriction it is a matter of forcing the upload to occur into a specified category. Currently the user upload user interface simply presents a list of categories in a drop down box. I want a view that will only load into the category where I want the users file to be uploaded...
- Benno
- Phoca Hero
- Posts: 9435
- Joined: 04 Dec 2008, 11:58
- Location: Germany
- Contact:
Re: Forcing category for user upload
Hi,
Kind regards,
Benno
Of course it has something to do with upload rights. If you see a list of categories in the Categories dropdown in UCP, you have given this user or all registered users upload rights for several categories. Check the upload rights of your categories and only grant the user upload rights for the category in question...This is not a matter of restriction it is a matter of forcing the upload to occur into a specified category.
Kind regards,
Benno
-
- Phoca Newbie
- Posts: 5
- Joined: 12 Oct 2017, 13:01
Re: Forcing category for user upload
Benno,
So, if I followed your suggestion then the user would be only able to upload to one category at any time! What I am trying to do on one page is for the user to be invited to upload a file into a pre-selected category. In other parts of the site they still need to be able to upload files into the different categories to which they have access rights.
Using access rights in the way that you've described is like applying a sledgehammer to a nut. It would make perfect sense to be able to pre-define the one category for the User Upload page and to not present the drop-down selector.
I'm guessing that as you've not confirmed that you can do this using parameters in the link to the User Upload page that this is not possible? If not, I'll have to write some JS code.
So, if I followed your suggestion then the user would be only able to upload to one category at any time! What I am trying to do on one page is for the user to be invited to upload a file into a pre-selected category. In other parts of the site they still need to be able to upload files into the different categories to which they have access rights.
Using access rights in the way that you've described is like applying a sledgehammer to a nut. It would make perfect sense to be able to pre-define the one category for the User Upload page and to not present the drop-down selector.
I'm guessing that as you've not confirmed that you can do this using parameters in the link to the User Upload page that this is not possible? If not, I'll have to write some JS code.