Welcome Guest, Not a member yet? Register   Sign In
Admin interface to control enabling and disabling of modules and controlling routes
#2

[eluser]Otemu[/eluser]
Hi,

You could have a database table that holds all your modules (id, name, desc, pos, onoff, etc). Let say on your site you have a two column layout with your dynamic modules on the right column side, when entering the admin page your have your usual fields for meta, content, images etc but now additionally you will have a extra tab called modules, this could either be drag and drop, or simply a list with all your created modules.

The module section of your admin panel will have options to disable or enable moduules, set position and depending how deep you want to take your system could have additional parameters options.

On your main site, the right column would loop though the modules found in your modules table that are active and any additional parameters set something like:

foreach $module as $row{
modules::run( $row[modulename]', $row[moduleparam]);
}




Messages In This Thread
Admin interface to control enabling and disabling of modules and controlling routes - by El Forum - 01-24-2013, 07:43 AM



Theme © iAndrew 2016 - Forum software by © MyBB