Jump to content

Core Sub-Module Support


Nico Knoll
 Share

Recommended Posts

Hey,

there are a lot of modules using submodules recently which is great in my opinion because it underlines the way Processwire works.

Examples are for example: Apeisa's Payment and Shipping modules, netcarver's new ProcessDiagnostic module and Adrian's ProcessMigrator.

All of them are using more or less different approaches - abstract classes, etc - and I'm not sure which is best. But I think a core support for submodules could be a nice addition.

One way to do it could be a "parent-module" setting in submodule's "module config" and a "getSubmodules" function in parent classes. Maybe you could add an abstract class like done with ConfigurableModule for this reason (e.g. ParentModule). 

Additionally apeisas way to use a abstract class would stay possible but wouldn't be necessary with this approach.

What do you think?

-- Nico

  • Like 6
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...