Changes between Version 3 and Version 4 of QuickStart/6:AddingaSiteWideTemplate

Show
Ignore:
Timestamp:
12/14/09 20:06:36 (16 years ago)
Author:
rchadgray@… (IP: 12.168.78.130)
Comment:

looks like dspTemplate.cfm changed to main.cfm or am i wrong?

Legend:

Unmodified
Added
Removed
Modified
  • QuickStart/6:AddingaSiteWideTemplate

    v3 v4  
    77If you look at your !ModelGlue.xml file, there's an event handler named "view.template." It doesn't do much: no messages, no results, just a single <include>. 
    88 
    9 The include, though, is special. Open it up. (/translator/views/dspTemplate.cfm). 
     9The include, though, is special. Open it up. (/translator/views/main.cfm). 
    1010 
    11 See Line !#38? "viewcollection.getView('body')"? What's with that? 
     11See Line !#16? "viewcollection.getView('body')"? What's with that? 
    1212 
    1313Model-Glue makes it easy to display the rendered HTML from one view inside of another. In all of your .CFM view templates, a variable named "viewcollection" is available. To display the rendered HTML from a prior view, simply run getView(), passing it the value of the desired view's NAME attribute.