Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

cfmodule with .html files

How do I get cfmodule to work with html files

Invalid template inc/nav.html provided for CFMODULE tag. 

 CFMODULE tag only supports including ColdFusion templates.   

 The error occurred in C:/inetpub/wwwroot/ColdDoc/strategy/api/resources/templates/overview-summary.html: line 28
Called from C:/inetpub/wwwroot/ColdDoc/strategy/AbstractTemplateStrategy.cfc: line 329
Called from C:/inetpub/wwwroot/ColdDoc/strategy/api/HTMLAPIStrategy.cfc: line 150
Called from C:/inetpub/wwwroot/ColdDoc/strategy/api/HTMLAPIStrategy.cfc: line 35
Called from C:/inetpub/wwwroot/ColdDoc/ColdDoc.cfc: line 37
Called from C:/inetpub/wwwroot/ColdDoc/run.cfm: line 10

26 : <BODY BGCOLOR="white" onload="windowTitle();">
27 : 
28 : <cfmodule template="inc/nav.html"
29 :            page="Overview"
30 :            projectTitle= "#arguments.projectTitle#"

This seems to be a change in behavior from Adobe ColdFusion 9

like image 319
James A Mohler Avatar asked Feb 12 '26 17:02

James A Mohler


1 Answers

I don't have CF11 installed but there were changes made to <cfinclude> that only allows one to include .cfm files by default but it can be disabled with allowedextinclude. I am not sure if that will also allow you to use .html for <cfmodule>.

See https://helpx.adobe.com/coldfusion/developing-applications/changes-in-coldfusion.html under Restrictions

For reference: http://blog.adamcameron.me/2014/02/coldfusion-11-first-bug-bad-bug.html

like image 185
Henry Avatar answered Feb 15 '26 07:02

Henry



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!