Changes

Jump to navigation Jump to search
no edit summary
Line 42: Line 42:  
         ├── public
 
         ├── public
 
         │   ├── css
 
         │   ├── css
         │   ├── images
+
         │   ├── images  
 
         │   └── js
 
         │   └── js
         └── templates
+
         └── templates - top level .html.ep file (one per theme)
 
             ├── layouts - contains one .html.ep file for each module
 
             ├── layouts - contains one .html.ep file for each module
 
             └── partials - contains partial files - as many as required for modules  
 
             └── partials - contains partial files - as many as required for modules  
 
                           (generally corresponds to subsidiary panels)
 
                           (generally corresponds to subsidiary panels)
 
</pre>
 
</pre>
 +
 +
So each module (contrib in this case), consists of at least 3 files:
 +
 +
# .pm file of perl in the controller directory to gather up the content into a data structure (generally a hash or array)
 +
# .lex or .pm in the I18n/modules directory consisting of translation strings
 +
# .html.ep file in the themes/default/templates/layout

Navigation menu