Changes between Version 61 and Version 62 of DeveloperGuidelinesNewModule


Ignore:
Timestamp:
11/29/13 22:35:41 (8 years ago)
Author:
Pat Tressel
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DeveloperGuidelinesNewModule

    v61 v62  
    141141
    142142=== Views ===
    143 Add HTML templates for any custom functions: {{{/views/<MODULE NAME>/<FUNCTION NAME>.html}}}
     143Create a directory for your view pages: {{{views/<MODULE NAME>}}}
    144144
    145 NB Only {{{index.html}}} is required to start with since the RESTful controller normally re-uses standard views.[[BR]]
    146 If Custom Views are wanted they are detected automatically if files are found in {{{/views/<MODULE NAME>/<RESOURCE>_<METHOD>.html}}}
     145Within that directory, add HTML templates for {{{index.html}}} and any custom views.  A simple {{{index.html}}} is:
     146
     147{{{
     148{{extend "layout.html"}}
     149<div id='home'>
     150{{=H2(T(module_name))}}
     151<p>
     152{{=T("Manage Vehicles")}}
     153</p>
     154</div>
     155}}}
     156
     157NB Only {{{index.html}}} is required to start with since the RESTful controller normally re-uses standard views.
     158
     159A custom view for a resource named <MODULE NAME>_<RESOURCE> will be found automatically if the view page is named {{{<RESOURCE>_<METHOD>.html}}}
    147160
    148161----
    149162DeveloperGuidelines
     163DeveloperGuidelines