0
Welcome Guest! Login
0 items Join Now

A Good Module Design Reference

    • Red's Avatar
    • Red
    • Sr. Rocketeer
    • Posts: 131
    • Thanks: 0

    A Good Module Design Reference

    Posted 17 years 8 months ago
    • I chanced across this site.

      He has a good example of how the module system works.

      -1 - 2 -3 -4

      I might have to play around with this and see what I can do at some point.

      www.corephp.com/developer_center/p,13/
      You may have noticed in some example templates that there are numbers after some of the module names (ex. < ?php mosLoadModule ( 'left', -3 ); ?>. This is where the magic happens! Just follow the list below to figure out what fits your needs the best…

      * < ?php mosLoadModule ( 'left', -1 ); ?>
      No code goes around the module and no title.
      * < ?php mosLoadModule ( 'left', -2 ); ?>
      Wraps the entire module in a div class=”module” with the module’s title in an h3.
      < ?php mosLoadModule ( 'left', -3 ); ?>
      Creates 3 extra divs along with the h3 title tag to give you flexability with the module container. We will be adding a section just for code to add to your style sheets to get special borders and other effects with this style sometime soon.
      <div class="module">
      &nbsp; <div>
      &nbsp; &nbsp; <div>
      &nbsp; &nbsp; &nbsp; <div>
      &nbsp; &nbsp; &nbsp; &nbsp; <h3>Title</h3>Module Info
      &nbsp; &nbsp; &nbsp; </div>
      &nbsp; &nbsp; </div>
      &nbsp; </div>
      </div>
      # < ?php mosLoadModule ( 'left', -4 ); ?>
      Wraps the module in a table (not what we want here, but wanted to let you know anyway).
       
       
      <table cellpadding="0" cellspacing="0" class="moduletable">
      &nbsp; <tr>
      &nbsp; &nbsp; <th valign="top">
      &nbsp; &nbsp; &nbsp; Module Title
      &nbsp; &nbsp; </th>
      &nbsp; </tr>
      &nbsp; <tr>
      &nbsp; &nbsp; <td>
      &nbsp; &nbsp; &nbsp; Module info
      &nbsp; &nbsp; </td>
      &nbsp; </tr>
      </table>
    • Andy Miller's Avatar
    • Andy Miller
    • Preeminent Rocketeer
    • Posts: 9919
    • Thanks: 96
    • Web Kahuna

    Re: A Good Module Design Reference

    Posted 17 years 8 months ago
    • Joe Halleck's Avatar
    • Joe Halleck
    • Preeminent Rocketeer
    • Posts: 5480
    • Thanks: 66
    • Never give up!

    Re: A Good Module Design Reference

    Posted 17 years 8 months ago
    • -1 RAW mode does work well but some modules do output HTML code that can throw you off.
      Keep this in mind when using the different modes and modules as WYS isn't always WYG. :)
    • Magento - phpBB3 - Kunena - RokBridge Specialist
      No Secure Tab posts unless requested.
      Use the Thank You and Life Preserver Buttons!
      Your signature is also great place for setup details...help us help you!

Time to create page: 0.052 seconds