Customising how Downloads are listed in different Categories
It is sometimes desirable to independently configure the way in which the Downloads in a Category are listed on a page.
- what sort order should be the default for this category?
- is the sort bar to be shown on this category?
- should Tags be shown?
- are the pagination buttons to be shown?
- is text such as 'Page 1 of 3' to be shown?
- how many Downloads should be shown for each page?
- show only featured Downloads?
By default the way Downloads are listed on a Category page is set in the main jDownloads Configuration Frontend tab. This article shows how to select the Downloads maybe listed in a particular Category.
This is achieved by using several jDownloads 'Single Category' Menu items as a Hidden Menu. Only those Categories that you wish to have different listing to the default need to have a hidden menu. This scheme works because jDownloads looks first to see if a category has a menu associated with it.
Actually of course the Single Category menu items could also appear in a visible menu or as a mixture in visible and hidden menus. But for simplicity it is assummed here that only Hidden Menus will be used.
Create Hidden Menu
Click on then on . At top left Select .
Fill in the Title and a Menu Type fields such as shown opposite. It is convenient to make the Title and the Unique Name the same.
Notice that the new Menu has a note saying "Add a module for this item" but because the menu is to be hidden we will not be adding a module.
That is we have now created a hidden menu.
Adding Menu Items
We need to create menu items that will allow setting up how a category is displayed, so click on the button.
Give the menu a name, which in this example is 'Topcat Sub1b'. It is useful to use the same name as the intended category as that is easier to remember!
Click on which will show a list of Components that support menu items as illustrated on the far right. Choose jDownloads.
This will then extend the list and show those menu item types specific to jDownloads as illustrated opposite.
Click on Single Category and this in turn will show a view like the one on the far right where jDownloads has pre-selected the category which is at the top of the alphabetic list. But this is not the one we need!
Use the pull down to select the required category, which in this example is
topcat-sub1b as indicated immediately opposite.
The view on the far right shows the setup of the menu item so far.
It is assumed that the menu item has been set as Published and that Access is Public or otherwise set as required. Both of these are on the righthand side of the Details view.
As indicated opposite, go to the Link Type tab and set option 'Display in Menu' to No.
Now use Save & Close on the main toolbar.
The list of the menu items shows that Topcat Sub1b is
Customising the Category
This shows a variety of ways in which the attributes may selected specific to this category.
This example just shows how to select a specific sort order for the Downloads in the category but there are many other possible options that override the defaults set in the jDownloads Configuration.
Clearly setting the jDownload Options attributes to the most commonly required settings minimises the number of hidden menu items.
Order by most recent date.
Sort Reverse Alphabetically.