News:

Support for jDownloads 3 has been ended
Since 17 August 2023 Joomla.org has discontinued support for Joomla 3.x. Therefore, we will no longer offer official support for our Joomla 3 jDownloads version 3.9.x from January 2024.
Please update your website to the latest Joomla version (Joomla 4 or Joomla 5) as soon as possible. Afterwards, please update jDownloads to the latest published version. The longer you delay, the more difficult the upgrade process for your website is likely to be.

Main Menu
Support-Forum

users have to login after pressing create download menu item

Started by wacl3, 19.01.2020 06:53:25

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

wacl3

Hello,
I would like to show a menu item create new download, when user presses on it, it requires the user to log in if not already logged in.  When logged in, it will direct you to a reg user to create download in a set category and manager user that allows the user to create a download in any category.
thanks
  •  

ColinM

HiRegistered
Not quite sure I understand!!
First being able to redirect a non-logged in user to a login page is 'challenging' and not really possible in jD,#].
There is some relevant documentation inhttp://www.jdownloads.net/documentation-for-jd3-2/access-controls-user-group-permissions-v3-2
However in summary do the following in order to do the other parts you want you will need  two user groups.
One called say CatUploaderUG  set with Parent 'Registered'.  Set this UG to have a Ranking value of say 127.  Create a View called CatuploaderView and join to this view.

And create another user group called say UploadManagerUG with parent CatUploaderUG and a ranking of say 131 (must be higher than ranking for  CatUploaderUG). Create a view called UploadManagerView which has UploadManagerUG allowed.
Create two menu items to Create a Download.  One of them is set to have view CatuploaderView and the other to have UploadManagerView.  In the CatUploader one go to the Options tab and set "Default category" to Yes and specify the required category in the "Choose a category" from the pulldown.

Because of Joomla! inheritance the manager UG will see both menu items but the other UG will only see its menu item.
Now untick the 'May select a different Category' in usergroup settings for CatUploaderUG but ticked for the UploadManagerUG settings
Hope this helps
ColinM

Colin M
  •