Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Parsing a parameter into CFSAVECONTENT

Explorer ,
May 20, 2006 May 20, 2006
Hello,

I am trying to use CFSAVECONTENT so that I can easily maintain a bit of code that I want to use on a single web page multiple times. However, I need to parse a parameter (variable) into it which I don't seem to be able to do. Is this possible? If not, is there another way of achieving this without the use of CFINCLUDE? My website is a Fusebox 4 application.

Many thanks,

Simon Bingham
TOPICS
Getting started
435
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
May 20, 2006 May 20, 2006
cfsavecontent is not really a code re-use tool. Depending on what the code does, consider making it a custom tag or udf instead.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 20, 2006 May 20, 2006
If not, is there another way of achieving this without the use of CFINCLUDE?
Even if there was, why would you bother? CFINCLUDE is arguably the most efficient re-use tool in all of Coldfusion. Then there are CTs and UDFs, as Dan has mentioned.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
May 22, 2006 May 22, 2006
LATEST
Custom tag it is then.

Thanks for your help.

Simon
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources