open-oni / plugin_featured_content

Random or curated display of pages
0 stars 1 forks source link

Scrap this plugin? #14

Open jechols opened 4 years ago

jechols commented 4 years ago

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

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.

jduss4 commented 4 years ago

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.