-
Notifications
You must be signed in to change notification settings - Fork 1
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
Scrap this plugin? #14
Comments
Would we need a "get random" type function as well? I like this approach better than the rather stretched plugin....amazing that such a small thing can be attempting to do such much all at once. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes, scrap it. I said it, it's out there, you're all thinking about it now.
Why?
This plugin is trying to do way too many totally different things
These seem similar from the outside, but the code just ends up being a lot of "if curated, do this and ignore all the other code" types of logic. Which means everybody who uses the plugin is actually only using one small part of it.
The solution
/featured_content
, wherever. This should allow for custom captions, too.include
allows passing context, so this should be pretty easy to doPAGES
configuration (https://github.com/open-oni/plugin_featured_content/blob/master/helpers.py#L103-L127). This kind of functionality should already exist in some form anyway, since we have to parse a URL with the same data and turn it into a page object.With all this stuff done, a plugin like this becomes unnecessary. But it will require some documentation. Right now people building themes have no idea what functions exist for theme-related code. ONI needs documentation that can tell people what's in core that they can use as well as how they could make use of it, and these new functions could be the first-documented "public API for themes" functions.
The text was updated successfully, but these errors were encountered: