This PR adds the option for flagging certain packages as "promoted" (planned for HQ, as a technical partner benefit and to support selected community packages). By selecting a package as promoted it'll appear in a new section under "Popular" and above "Latest", and also expose the information via the API so we can do a similar thing in the back-office.
Requires a new property on the "Project" document type:
Tab: Project
Alias: isPromoted
Name: Is Promoted?
Description: The package is selected for promotion (HQ, technical partner or selected community package).
I've reworked the templates slightly to allow for hiding of the whole "Promoted" section if there are none to promote, which required a new partial, and then to share some common helpers and functions between the new and existing template for listing packages.
This PR adds the option for flagging certain packages as "promoted" (planned for HQ, as a technical partner benefit and to support selected community packages). By selecting a package as promoted it'll appear in a new section under "Popular" and above "Latest", and also expose the information via the API so we can do a similar thing in the back-office.
Requires a new property on the "Project" document type:
I've reworked the templates slightly to allow for hiding of the whole "Promoted" section if there are none to promote, which required a new partial, and then to share some common helpers and functions between the new and existing template for listing packages.