Tree Module -June 2023
Navigation in a graphical tree form.
The 'Tree' module shows the jDownloads Categories in a tree like scheme. It gives a visual representation of the category organisation.
As illustrated later the view may be arranged to include or exclude certain branches or part of a branch of the tree.
As illustrated later the view may be arranged to include or exclude certain branches or part of a branch of the tree.
Menu requirement
In order for the Tree module, and anything else in jDownloads, to work properly it is essential to have the jDownloads menu item 'List All Categories'. Details on creating such a menu item are given in the article Menus - Overview and Details (opens in a new window/tab).
However in some situations you may wish to hide that menu item. 'Hiding' a menu item is a standard Joomla! facility and how to hide a menu item is briefly described below.
jDownloads always requires a menu item type 'List All Categories', either hidden or active, to function correctly.
However in some situations you may wish to hide that menu item. 'Hiding' a menu item is a standard Joomla! facility and how to hide a menu item is briefly described below.
jDownloads always requires a menu item type 'List All Categories', either hidden or active, to function correctly.
Hiding a menu item
Assuming you have created a 'List All Categories' menu item then find it in the relevant menu and click on its title.
Select the tab and find the setting 'Display in Menu' and set to No, then .
When you return to the list of menu items you will see that it is now hidden.
Select the tab and find the setting 'Display in Menu' and set to No, then .
When you return to the list of menu items you will see that it is now hidden.
Configuring Tree module
To configure the Tree Module go to and click on in the section. Then scroll down and click on wich opens the tab as illustrated opposite.
Ensure that the Status is set to Published.
In many of the examples used in this article the following Options were set to Yes:
Display number of Subcategories
Display number of Downloads
View zero values?
View Tooltip?
Display number of Downloads
View zero values?
View Tooltip?
Next select the tab and ensure the Module Assignment' option is set to 'On all pages' as illustrated opposite.
General
The initial Public view using the default module setup is typically as shown in the first picture opposite.
It lists all the Top Level Categories that are pubically available, including Uncategorised.
Clicking on the symbol expands the branch as illustrated in the far right picture. Clicking on the collapses that branch.
Note: If it also shows the link, as in the views opposite, then that indicates that no 'exclude' or 'include' Categories selection is active.
It lists all the Top Level Categories that are pubically available, including Uncategorised.
Clicking on the symbol expands the branch as illustrated in the far right picture. Clicking on the collapses that branch.
Note: If it also shows the link, as in the views opposite, then that indicates that no 'exclude' or 'include' Categories selection is active.
The only Categories shown when a user is not logged in are those that have Public or Guest View Access Level.
After logging in then the module shows all of the categories for which the user group has view access.
In this example the category LoggedOnDownloads appears after logging in.
If partway down a branch a Category becomes 'invisible' because of a change in View Access Level then the branch will stop at that point.
After logging in then the module shows all of the categories for which the user group has view access.
In this example the category LoggedOnDownloads appears after logging in.
If partway down a branch a Category becomes 'invisible' because of a change in View Access Level then the branch will stop at that point.
Show Number of Subcats and Downloads
The picture opposite shows the effect of enabling the 'Display number of Subcategories' and 'Display number of Downloads' options.
There is also an option where you can 'display zeros' to show there are no sub categories or Downloads which has also been enabled.
The 'round' brakets, ( ), denote number of sub categories and 'square' brackets, [ ]. denote the number of Downloads in the current and subsequent subcategories.
Note that the links are active. Clicking on category 'zip files' for example will show the contents of that category in the main view area as illustrated on th image at the far right..
The module also has an option to show tooltips for the number of sub categories and number of Downloads by moving the cursor over the relevant value.
This is helpful as not everyone will remember the meaning of the different type of 'bracket'.
Limit Depth Shown
For sites with a significant depth of categories it is useful to have the ability to limit the depth.
The first image on the right has no limit and is showing all levels but the second image has the limit set to 2 levels.
The first image on the right has no limit and is showing all levels but the second image has the limit set to 2 levels.
Include Option
One of the most useful abilities is to only include specific branches of the tree.
Basically you need to list out the individual category branches you wish to 'include'.
The image opposite is taken from the regular Categories view so that the following examples are more readily understood.
The examples use the 'LoggedOnDownloads' top level category. It has five sub-category levels
Note that for include the path must be specified in full, and must start at a top level category.
This is done from the Pull Down List starting with a top level category.
Once selected that Category is no longer visible in the pulldow, as shown in the first picture opposite, so it is easy to see where you are in the chain.
The second image shows the required 'chain' of categories
After completing the 'include' path then the view shown is like the one opposite.
Note that the option 'Select Number of Levels' had to be increased. Also the 'Overview' is not shown.
The 'Include' does not override any View Access Levels.
For example if all the Categories in the selected Branches have Registered as the Access Level then a user who is not logged in will not see any part of the Tree module.
Exclude
With the Exclude filter option the listed categories and all their subsequent sub categories are excluded from the view.
The excluded categories may be anywhere in the tree. That is unlike the Include filter they do not have to start at a top level category.
In this example the sub categories 'Noddle2A' and '7th Group' were excluded.
The excluded categories may be anywhere in the tree. That is unlike the Include filter they do not have to start at a top level category.
In this example the sub categories 'Noddle2A' and '7th Group' were excluded.
Colin Mercer, November 2019, updated September 2020, June 2023