Site:Frontend:Modules

From Metrixstream
(Difference between revisions)
Jump to: navigation, search
Line 3: Line 3:
 
Modules contain stand-alone code, files, pages, and page includes required to perform the tasks of the module.
 
Modules contain stand-alone code, files, pages, and page includes required to perform the tasks of the module.
  
 +
== Module Integration ==
  
== Module Sections ==
+
After a module is created or imported, it will be listed under Module Integration while editing a site page.
  
=== Files ===
+
Selecting the module will populate MS.module.data with the contents of the module. Calling MS.module.data on the page will inject the contents onto the page.
  
Files contain all the files required for the module. This includes javascript, images, and CSS.  
+
  <html>
 +
    <head>
 +
      <title>Module Test</title>
 +
    </head>
 +
    <body>
 +
      <?cs var:MS.module.data ?>
 +
    </body>
 +
  </html>
  
=== Pages ===
 
 
Since a module is self-contained all the pages need to be a part of the module.
 
 
=== Page Includes ===
 
 
Page includes are for sharing macros and variables across pages.
 
 
=== Header / Footer ===
 
 
The header and footer are included on all pages of the module.
 
  
  
Line 26: Line 23:
  
 
=== Accessing a Page ===
 
=== Accessing a Page ===
 +
 
Something
 
Something

Revision as of 12:05, 15 June 2012

Contents

Introduction

Modules contain stand-alone code, files, pages, and page includes required to perform the tasks of the module.

Module Integration

After a module is created or imported, it will be listed under Module Integration while editing a site page.

Selecting the module will populate MS.module.data with the contents of the module. Calling MS.module.data on the page will inject the contents onto the page.

 <html>
   <head>
     <title>Module Test</title>
   </head>
   <body>
     <?cs var:MS.module.data ?>
   </body>
 </html>


Pages

Accessing a Page

Something

Personal tools