ColdFusion Comments
Hallo,
I am using ColdFusion code in the HTML Source Editor in Cascade and I am having problems with ColdFusion comments. I tried searching anything ColdFusion related before writing this but was unable to find anything relating to this problem.
An example of what I type in the HTML Source Editor is
below:
<!--#START-CODE CF Code #END-CODE-->
<!--- CF Comment --->
<!--#START-CODE Back to CF Code #END-CODE-->
Once I "Update" the Content area and submit I go to recheck the
source of the Content area and find that the ColdFusion comment has
changed to the below:
#END-CODE--><!--- CF Comment
=--><!--#START-CODE
The ---> changes to =-->
Thank you in advance.
Discussions are closed to public comments.
If you need help with Cascade CMS please
start a new discussion.
Keyboard shortcuts
Generic
| ? | Show this help |
|---|---|
| ESC | Blurs the current field |
Comment Form
| r | Focus the comment reply box |
|---|---|
| ^ + ↩ | Submit the comment |
You can use Command ⌘ instead of Control ^ on Mac
1 Posted by Alex on 27 May, 2010 03:32 PM
I suppose the "How do I..." would be:
How do I add ColdFusion comments in Cascade's HTML Source Editor?
2 Posted by Joel on 27 May, 2010 03:35 PM
Hi Alex,
After publishing, this code should produce a proper ColdFusion comment:
Thanks!
3 Posted by Alex on 27 May, 2010 03:54 PM
Thank you for the quick reply, Joel!
I had to make a slight modification to your suggestion but it did work as intended.
Reason being the code suggested produced:
<! --- CF CODE --- >But simply taking out the spaces was all that was needed.
Thank you again!
4 Posted by Joel on 27 May, 2010 04:00 PM
No problem Alex! Please also feel free to monitor the issue below for implementation progress, as we have identified this as an improvement item.
http://support.hannonhill.com/browse/CSCD-6775
Thanks!
Joel closed this discussion on 27 May, 2010 04:00 PM.
Alex re-opened this discussion on 27 May, 2010 04:05 PM
5 Posted by Alex on 27 May, 2010 04:05 PM
Joel,
My coworker came up with another idea that shortens the comment.
He suggested a <cfscript> around the comment and to use C-style comments:
This also seems to work from what we have just tried.
6 Posted by Joel on 27 May, 2010 05:56 PM
Thanks for the followup Alex, I've added that workaround to CSCD-6775 as well.
Thanks!
Joel closed this discussion on 27 May, 2010 05:56 PM.