Skip to content
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

Module deacivation option #498

Open
instantflorian opened this issue Apr 21, 2021 · 1 comment
Open

Module deacivation option #498

instantflorian opened this issue Apr 21, 2021 · 1 comment
Milestone

Comments

@instantflorian
Copy link
Contributor

For testing purposes it might be helpful to deactivate a module without completely removing it. The behavour of a deactivated module should be as if it is not installed, e.g. view.php / include.php are not excecuted and module stylesheets / javascripts are not loaded.

@instantflorian instantflorian added this to the 2.0 milestone Apr 21, 2021
@WebDesignWorx
Copy link
Contributor

WebDesignWorx commented Apr 21, 2021

Dev notes:

  1. add column active to table {TP}addons
  2. expand query code in https://github.com/WBCE/WBCE_CMS/blob/development/wbce/framework/frontend.functions.php#L325 in order to exclude Page-Module from output array when module inactive
  3. apply for AdminTools also so that the inactive ones are excluded from view in /admin/admin-tools in the backend, are not accessible at all and don't execute anything

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants