Title:
Bug 74767:Please add <cfsavecontent> to cfscript, or a variable attribute to cfinclude
| View in TrackerStatus/Resolution/Reason: Closed/Fixed/
Reporter/Name(from Bugbase): Daryl Banttari / Daryl Banttari (cfprimer_guy)
Created: 01/05/2009
Components: Language, CFSCRIPT
Versions: 9.0
Failure Type: Unspecified
Found In Build/Fixed In Build: 216113 /
Priority/Frequency: Major / Unknown
Locale/System: English / Platforms All
Vote Count: 5
Problem:
Please add <cfsavecontent> to cfscript, or a variable attribute to cfinclude. For MVC views, a common pattern is to have a cfc method call a cfm view page, and sometimes you want to store that content in a variable, instead of displaying it inline. Without this change, we'd be forced to stick to using <cfcomponent> instead of component{} in order to have access to the <cfsavecontent> functionality.
savecontent variable="navsection" {
include template="navView.cfm";
}
or
include variable="navsection" template="navView.cfm";
Method:
Result:
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3037156
External Customer Info:
External Company:
External Customer Name: Daryl Banttari
External Customer Email: 63180D784462A9A5992015D5
External Test Config: 01/05/2009
Attachments:
Comments: