Introduction
The frontend view of a featured Download is controlled by three placholders in the active layout; {featured_pic}, {featured_class} and {featured_detail_class}. These placeholders are already in the default layouts. Basically the placeholders generate specific code. The {featured_pic} placeholder always adds the selected image in the header setion of the frontend view if the Download is marked as featured. The other two placeholders only generate code if the Download is marked as featured and, as described later, the option 'Use the additional Placeholders' is set to Yes. The {featured_class} and {featured_detail_class} placeholders also need relevant CSS code to be added in say jdownloads_custom.css as describe in more detail later in this article.
The first image opposite is a regular unfeatured Download
The second image opposite illustrates the simplest level of 'featuring' with just an orange star,
As noted later there are additional styling possibilities to make a featured Download even more evident.

Option Settings
The first setting allows you to select the symbol itself. The available options are eleven different coloured stars and a 'None Selected' option, which shows nothing.
The next two settings select the width and height of the symbol respectively
When set to Yes, the 'Use the additional Placeholders' allows setting background colours as described later.
Selecting 'No' will just show the featured star symbol in the title bar.

A typical example is shown opposite


Making a Download featured
Frontend

Backend

Obviously this is very tedious if you have several Downloads to set to featured.
So in the backend on a listing of the Downloads you can select the relevant Downloads by clicking the button next to the title.

Featured Downloads Enhanced Appearance
If you are unfamilar with layouts and their code then please see the Layouts articles section (opens in new window/tab),
in particular articles Layout Place Holders (opens in new window/tab) and Anatomy of a Layout (opens in new window/tab)
A typical bock of code in the layout is shown opposite

The standard Downloads and Downloads Details layouts support all three 'featured' placeholders so there is no need to edit the layouts.
For reference the image opposite is an example of a 'regular' frontend view, that is it has not been marked as featured.
The second image opposite shows a 'featured' views using all three placeholders.
This shows a linear gradient background in (featured_class) shows
The (featured_class_detail) was selected as the same background colour
Note the use of ( and ) being used in place of { and }. This avoids featured class being interpeted in the article!!


A more obvious difference between the featured class and the featured_detail class region, shown in a bright green, and the featured region shown with a lighter green is illustrated opposite.



Changing the Featured Background.
The actual CSS code required is itself quite straight forward as noted below. Basically in these examples it is just setting background image colours and linear gradients the CSS code shown. But you could be more adventurous!
In the examples here, the CSS code shown opposite was copied to jdownloads_custom.css to show the first example above.
Note that for the {featured_detail_class} region there are multiple classes involved because of the different CSS in various layouts./* CSS for featured heading region*/
.jd_featured {
background-image: linear-gradient(0deg, #feffe8, #d6db6f)!important;
}
/* css for featured detail region */
.jd_featured_detail,
.jd_featured_detail .jd_minipic_wrapper,
.jd_featured_detail .jd_fields_wrapper_compact,
.jd_featured_detail .jd_fields_wrapper {
background: #d6dbbf !important;
}
.jd_featured {
background-image: #91ddf4 !important;
}
/* css for featured detail sections */
.jd_featured_detail,
.jd_featured_detail .jd_minipic_wrapper,
.jd_featured_detail .jd_fields_wrapper_compact,
.jd_featured_detail .jd_fields_wrapper
{
background: #c1df96 !important;
}
Adding Your Own Featured symbol
It should have a name like featured_yellow_rose2.png and should be 64px wide and 64px high. Note that the pull down list is ordered alphabetically.
The frontend view will now look something like that shown opposite.


ColinM Nov 2019, updated July 2020, July 2023, March 2025, May 2025
