Easton's stuff Geek, coding and other madness....

Modules

As of version 1.3.0, WorkSimple incorporates a new modules system.

 

Modules are stored in modules/

The control panel and index page both contain 'plugs'.

 

For the index page (index.php), they are as follows

  • index, contentleft
  • index, contentcenter
  • index, contentright
  • index, footer
  • index, links

For the control panel (cp.php), they are as follows

  • cp, contentleft

(I forgot to add more for the control panel).

But how do you use them?

Create your module first. Save it in modules/. For the text you want to be displayed at a certain block, prefix it with:

$rack['index']['footer'] = 'my text blah blah ';

Each key in the $rack array corresponds to a plug. So 'index, contentleft' would be:

$rack['index']['contentleft'] = 'my text blah blah ';


This page needs to be cleaned up