umbraco / OurUmbraco

MIT License
96 stars 171 forks source link

Adds back-office management, display and API updates to support promoted packages in the back-office and on our.umbraco.com. #743

Closed AndyButland closed 2 years ago

AndyButland commented 2 years ago

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.

AndyButland commented 2 years ago

Thanks, have updated with the migration.