ClassicPress PetitionsClassicPress Petitions
This is a read-only archive. Post or comment on the live version of this page on our forums.

Tools That Can Be Used in Building

November 23, 2018 · 01:35 · Sunshiney

I mentioned this in a reply to another person's post. To bring it to the surface more, I am reposting and elaborating on my thought.

I always have and notice that I continue to prefer "The Drupal Way" of providing high-level tools (modules) that can be used to build extensible and scalable sites rather than being provided solutions in the form of plug-ins. That approach reduces the plethora of plugins that must be maintained in the WP environ, while enabling the building of anything one can imagine -- without WIXing it.

While devs find this approach attractive, the Drupal weakness has long been a ui that pushes non-techy clients of devs away from the table. Additionally, Drupal's update process can be simply annoying. Add to that, it's weakness in the ecommerce area.

Imagine bringing the great features of WordPress and the great features of Drupal together. The result would be innovative, a unique position in the CMS arena, and simply amazing.

Think about it? Consider it?

Mike Schinkel

I worked with Drupal for in 2008 and 2009 before switching to do full time development with WordPress. I have had the same mindset as mentioned here for years, I even debated it on the old wp-hackers mailing list in 2010.

Since that went nowhere, I developed at library for WordPress that primarily supports the concepts of modules and that is much more opinionated that WordPress is with plugins to ensure more consistency with implementation.

So IMO, modules are definitely a way forward. Similar to plugins since they are extensions, but also similar to libraries because I think they best when adding a new internal PHP API (not to be confused with a REST API.) #fwiw

James Nylen

Is a "module" just a plugin that provides developer-facing APIs rather than user-facing features with a graphical interface?

If so, this is basically what we are planning.

See a couple of examples here on this site:

Mike Schinkel

> "Is a "module" just a plugin that provides developer-facing APIs "

From my perspective, yes.


For the most part, yes. Example:

"Ctools is a module that provides various functionality for developers who wish to use it. Think of it as a toolkit of functionality that you can use to save time in developing some regularly used functionality. Includes:

Plugins -- tools to make it easy for modules to let other modules implement plugins from .inc files.
Exportables -- tools to make it easier for modules to have objects that live in database or live in code, such as 'default views'.
AJAX responder -- tools to make it easier for the server to handle AJAX requests and tell the client what to do with them.
Form tools -- tools to make it easier for forms to deal with AJAX.
Object caching -- tool to make it easier to edit an object across multiple page requests and cache the editing work.
Contexts -- the notion of wrapping objects in a unified wrapper and providing an API to create and accept these contexts as input.
Modal dialog -- tool to make it simple to put a form in a modal dialog.
Dependent -- a simple form widget to make form items appear and disappear based upon the selections in another item.
Content -- pluggable content types used as panes in Panels and other modules like Dashboard.
Form wizard -- an API to make multi-step forms much easier.
CSS tools -- tools to cache and sanitize CSS easily to make user-input CSS safe."

Much of Ctools was incorporated into core at Drupal 8.

I got my CMS start in Drupal and the result was that I did not have a need to master Javascript, let alone React. The modules enabled me to skip that aspect and instead zero in on using the hammers, screwdrivers and other tools provided by the modules. I kinda freaked when a client demanded I use WP and looked at that environment. Thousands of plugins zeroing in on a few tasks when if I had a hammer, I could do a huge group of them.

But, that did lead me to learning more and more Javascript. I still prefer tools though as my time is a nonrenewable resource.