Hi,
I have some questions regarding the "Select Category" in front-end "create download". I have archived more than 1,800 categories and now the selection of one category is quite difficult because they are ordered by ID.
1. How I can make categories to sort by name (ASC)?
2. Is it possible to make a cascade selection for category?
Thanks
Hi
One way to limit the number of Categories listed in the Front End Create/Edit form is to make use of the Permissions about which User Groups can create or edit a Category.
Permissions in a Top level Category are normally cascaded down its sub category chain. So it is only necessary to set those. Suppose for example you have top level categories called CatOne, CatTwo and CatThree. Then create User Groups called say OneUG, TwoUG and ThreeUG. Use the jD Users Groups Settings to give these UGs a high ranking (say 131,132 and 133 respectively), that they can change categories, the types of file allowed and other such things. Set the Permissions for CatOne so that OneUG is allowed to create and edit, leaving permissions for TwoUG and ThreeUG as inherited - do NOT use Deny as there may be unintended consequences! Now do the similar for CatTwo allowing create/edit for TwoUG and the same pattern for CatThree and ThreeUG.
When you set the permissions you MUST do a SAVE as this causes the cascading through the sub cats.
So a user who belongs to OneUG will only see those categories in CatOne and its subcats. The discipline then comes on the login.
Not an ideal solution but it does make it more workable.
Also could you please put in a suggestion for being able to specify category order in front end create/edit and sy being able to show current level plus say 2 levels below.
Colin
Hi ColinM,
Thank you for the comprehensive explanatory answer on limiting categories and the use of rights for this purpose. I think this works, but I'm interested in sorting the categories in the drop-down menu.
- On my first question above - sorting the categories alphabetically, as in the old version 1.9.2.11
Screenshot of the configuration options jD 3.2.52:
(https://s6.postimg.org/mtwjxrlot/frontend_sort_order.png)Screenshot of the categories sorted alphabetically in jD 1.9.2.11:
(https://s6.postimg.org/pci8yg7f1/jd_1.9.2.11_categories_submit_file.png)Screenshot of categories
not sorted alphabetically in jD 3.2.52:
(https://s6.postimg.org/jplw0z4wd/jd_3.2.52_categories_submit_file.png)- On my second question above - Category display type: cascading dropdowns. For example, categories have the following tree structure:
cat1
-cat1a
--cat1a1
---xxx
----xxx
cat2
-cat2a
--cat2a1
---xxx
----xxx
cat3
-cat3a
--cat3a1
---xxx
----xxx
xxx
Where cat1, cat2, cat3 are level1; cat1a, cat2a, cat3a are level2; cat1a1, cat2a1, cat3a1 are level3
One screenshot for such choice, but from another component:
(https://s6.postimg.org/gwsogy4jx/Category_display_type--cascading_dropdowns.png)
Hi,
Yes it does seem that the Front End Category sort is not being respected in the create/edit Download form but it is ok elsewhere - see pic below. There is a complication compared to earlier versions as only those categories where the user group has create/edit permissions are shown. Presently not sure if a bug or a suggestion :-\ ! Will discuss with Arno.
Presently one can set the number of levels shown but it is fixed at the selected number of levels below the top level. I am not sure within the upload form how one would use the different levels as you indicated given the constraints. One needs to see the relationship between the parent and child categories. I am aware that many users have the same name for a sub category but a different name for the the parent, for example using years as the parent levels and months as the child level.
Colin
[gelöscht durch Administrator]
I think I could fix it now in next version 3.2.53 (coming very soon). It is now used always the sort order as defined in configuration for the frontend.
Thanks, I'm waiting for the next version when it's published. :)
Hi Arno,
After installing the new version 3.2.53, many of the categories are missing in the dropdown menu. :'(
Hi
V3.2.53 not yet released officially - think Arno sent you a test version so perhaps you could identify the missing categories.
Note that only those that are visible and user has required permissions for create, edit and download will be listed so I would not expect to see all categories.
Colin
EDIT I have now checked this and as suspected when creating a Download only those Categories with both View Access and with create, edit and download permissions are shown in the Pull Down. They are of course listed in the correct order as selected.
C
Probably a test version downloaded
here. I apologize for not specifying this before.
Showing 166 of 1,875 categories, their number being the same for a super user and a regular registered user.
[gelöscht durch Administrator]
After installing the version 3.2.53 published on the site and using various configuration options i noticed the following in the create form :
Only displayed categories with public access regardless of the group of the user who logged into the site.
If I use "Categories default sort order / Category Manager order" are shown 1285 categories (maybe only all categories with public access).
If I use "Categories default sort order / Title Alphabetical" are shown 140 categories (only public access).
If I use "Categories default sort order / Title Reverse Alphabetical" are shown 1285 categories (maybe all categories only with public access).
Some solution for this issue?
Thanks
Hi
Have you set up the ranking value for the User Groups Settings for user groups entitled to upload? Note because of the inheritance factors every one is an implied member of the public group.
What have you set the permissions on the public user group - did you set via the Options Button? Only the those UGs with create and Edit permissions are listed.
Are you sure you set by User Group? For the uploaders which User Group did you set as Parent - best if you use Registered as Parent
Colin
Attached screenshoots for user group options.
Solution for
QuoteIf I use "Categories default sort order / Title Alphabetical" are shown 140 categories (only public access).
- Show the same number of categories as the other options:
Edit mysite/administrator/components/com_jdownloads/models/fields/jdcategoryselecteditfe.php
#75 $query->order('a.level ASC, a.title ASC');
add a.parent_id ASC
#75 $query->order('a.level ASC, a.parent_id ASC, a.title ASC');
I still do not have a decision to display the categories according to the specified access rights. Even as a super user, only those categories with public access are visible.
[gelöscht durch Administrator]
Hi
Thanks for all the pics. I can see that you are using the Options button to set the Component permissions. Noted that the Premiun, Elite and Platinum UGs all have the same capability.
How many top level categories do you have? It is normally better to leave the Component Permissions as Inherited and set the required permissions on the Top Level Categories. This gives much more flexibility and control.
Have you used Deny permission anywhere? This causes unexpected side effects and should not be used normally. If you have or think you may have then use the jD Tools to reset permissions on Categories and on Downloads.
You should also grant Edit Permission.
What view Access have you set?
Would be much simpler if I could look directly
COlin
Hi
Deny permissions for download and upload only for "Public".
I Sent you PM with data for login.
Hi,
sad to say but in the version 3.2.43 exist a bug with the category select box. So it was required to publish a new version with the old (unsorted) sort order. I have in the moment not the time to fix the bug as it is a little bit tricky. ::)
Hi,
"Category select box" does not comply with the rights of the categories: for regular registered user displays all the categories together with those that he is not allowed to see. This is noticed in versions 3.2.55, 3.2.56.
Also, categories can not be sorted alphabetically when this option is selected in the configuration.
Hi, if selected the option "Frondend / Categories default sort order / Title Alphabetical" categories are not sorted alphabetically in the "Category select box" on the pages "Submit File" and "Edit Download". This is valid for the versions: 3.2.56 and 3.2.57
Any solution for this issue?
Best Regards
Hi
Earlier you wrote
Quote"Category select box" does not comply with the rights of the categories: for regular registered user displays all the categories together with those that he is not allowed to see.
That is actually the correct Joomla! behaviour as what you see depends on the view Access level. Unlike the permissions this does not cascade down the chain. Whist there is no access the site may wish users to view the category description or similar so that the user may wish to register.
Quote"Frondend / Categories default sort order / Title Alphabetical" categories are not sorted alphabetically in the "Category select box" on the pages "Submit File" and "Edit Download"
The category sort order is by each category 'level' in turn. That is initially by top level categories, then within that by the first sub cat and so on. The 'level' is indicated by the number of '-' characters shown to produce a nested look.
Colin
Hi
Once there are hidden categories for some groups why these categories should be visible to everyone in the list when uploading a file?
Once I have chosen an alphabetical order, why there be a difference in the lists of categories?
[gelöscht durch Administrator]
Hi
QuoteOnce there are hidden categories for some groups why these categories should be visible to everyone in the list when uploading a file?
In your User Groups Settings you have allowed the Front End 'uploader' UG to be able to select the Category into which the the Dowload should be located. Or if you are using the menu item Create Download then you can select whether that menu item selects a single category or all categories. It is assumed that 'uploaders' are to be trusted.
Colin
Hi Colin,
The "default access view level" option in the administration applies only to the "Access" field, but does not apply to the category list in the "Create / Edit Download"
(https://s6.postimg.org/auj061xv1/Screenshot_from_2018-03-04_13-27-55.png)(https://s6.postimg.org/jcsgaec3h/Screenshot_from_2018-03-04_13-29-46.png)I've set all groups to upload files, but the idea is this:
- Categories have different access depending on the groups
- When a users wants to upload files can see a list of categories depending on the group they belong to (As is organized to display the categories in front end of the component).
- In 2000 categories, if not sorted alphabetically, is it easy to choose a category ?!
- - It may be good to list of categories in Create / Edit download and the listbox in header to do cascading dropdown like :
https://www.jqueryscript.net/demo/Easy-Ajax-enabled-Dependent-Dropdown-Plugin-With-jQuery-ssdCascadingDropDown/
https://www.jqueryscript.net/demo/Dynamic-jQuery-Cascading-Dropdown-Lists-Plugin/
First dropdown menu - top level of categories
Second dropdown menu - second level categories, etc.
There is a complication compared to earlier versions as only those categories where the user group has create/edit permissions are shown. Presently not sure if a bug or a suggestion
You could fix it in next version 3.2.53
Hi
We are now up to version 58.
You wrote
Quoteonly those categories where the user group has create/edit permissions are shown
Yes that is the intention. Basically if the user belongs to a particular UG should they be able to provide links to other Downloads? View Access is not a viable option as that is often, for example, Public view.
Colin
@ ciklon
QuoteThe "default access view level" option in the administration applies only to the "Access" field, but does not apply to the category list in the "Create / Edit Download"
Sorry but this is a bug. Normally should only be listed the categories where the user has view access. I hope I can fix this shortly.
Thank you Arn?,
I hope you will fix this problem soon.Will It be possible the categories will be sorted alphabetical?
Hi, Arno
The bug issues :
1. The "default access view level" option in the administration applies only to the "Access" field, but does not apply to the category list in the "Create / Edit Download"
2. "Frondend / Categories default sort order / Title Alphabetical" categories are not sorted alphabetically in the "Category select box" on the pages "Submit File" and "Edit Download" are solved in jD v.3.2.60.
But another bug occurred - The list of categories in the frontend is not sorted by setting "Frondend / Categories default sort order / Title Alphabetical"
Edit changed line spacing for clarity Colin
[gelöscht durch Administrator]
Hi
Will Check out
Colin
@ciklon,
I cannot see any mistake on your first pic. And on the second are listed sub categories NOT Downloads. The selected sort order on the top has nothing to do with the order from the sub categories.
Hi Arno,
First pic: category list box on "Create / Edit Download" page - this is solved bug ( without mistake).
Second pic: sub categories dont listed alphabetical.
Attached screenshot from setting "Categories default sort order"
[gelöscht durch Administrator]
Hi
The category structure is a tree so the alpha sorting in alphabetical within each category. When a sub category occurs that is sorted alphabetically and appears after its parent category. This is a recursive process for each category level. The sorting used on the page is the same as in the pulldown as shown in the pic of a pulldown list below.
To sort the categories ignoring the tree structure would be very strange. What would one do with two subcategories with the same name but different parent categories? For example one might have a Category called Mobile Phones with a sub category Samsung and another Category could be TVs again with a sub category Samsung.
Another navigation aid you might consider is to show the traditional Breadcrumbs display such as illustrated in the second pic. This does track where we are.
Yet another approach might be to use the Tree module as this gives a reasonable overview of the category structure. This is illustrated in the third picture. A user can go direct from the tree to the any category. The tree can show the number of sub categories and Downloads.
Colin
[gelöscht durch Administrator]
Hi,
My sort ordering settings are from jDownloads version 1.9.x
I do not use the jDownloads tree module because there was no version of it for the alphabetical ordering of categories
I will explain: In the layout of the categories at the frontend of the site, the categories and subcategories ordered alphabetically from jDownloads 1.9.x to 3.2.59 (except for some versions when there was a problem with the same)