-
Notifications
You must be signed in to change notification settings - Fork 198
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve core "featured records" functions #1003
Comments
This helper consolidates other featured record displays. * It takes multiple types of records. * Allows users to pass overrides for the partial that renders the featured records. * Allows users to set thumbnail size for representative images.
I documented the custom featured record functions implemented across the themes:
So to summarize, the uses cases typically want to be able to pass a record type, number of records to retrieve, and define a partial to use. In addition, as the current I've drafted |
Summarizing some thoughts on random_featured_records:
|
I'm open to this. I can definitely see more uses for this outside of a "featured" context. Maybe something as simple as
Yeah, I think I'm leaning towards something more straightforward like that. It would probably make considerations for displaying plugin record types easier as well. |
2413163 responds to the latest feedback. It's been renamed |
Themes are almost all replacing these with their own and it's caused duplicated work.
The features these provide should be something we can have in the core to ease the burden on themes. Minimally this is something like having options for multiple where the core/plugin function is currently single, and possibly more. A survey of what the themes are doing is probably necessary to see what we should be providing.
The text was updated successfully, but these errors were encountered: