Changes between Version 3 and Version 4 of QuickStart/6:AddingaSiteWideTemplate
- Timestamp:
- 12/14/09 20:06:36 (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
QuickStart/6:AddingaSiteWideTemplate
v3 v4 7 7 If 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>. 8 8 9 The include, though, is special. Open it up. (/translator/views/ dspTemplate.cfm).9 The include, though, is special. Open it up. (/translator/views/main.cfm). 10 10 11 See Line !# 38? "viewcollection.getView('body')"? What's with that?11 See Line !#16? "viewcollection.getView('body')"? What's with that? 12 12 13 13 Model-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.
![(please configure the [header_logo] section in trac.ini)](/ModelGlue.com/trac.cgi/chrome/site/your_project_logo.png)