Skip to main content
March 14, 2011
Answered

cfmodule return value

  • March 14, 2011
  • 1 reply
  • 1352 views

Hi,

I am trying to store the content that cfmodule displays on the page to a cf variable.

<cfmodule template="mypage.cfm" attributes="attr_1">

can I store the data coming from the mypage.cfm into a variable

if not from cfmodule, is there any other tag that does this ?

Thank you

    This topic has been closed for replies.
    Correct answer Dave Watts

    Yes, you can simply wrap your CFMODULE (or anything else that generates output) with the CFSAVECONTENT tag.

    Dave Watts, CTO, Fig Leaf Software

    http://www.figleaf.com/

    http://training.figleaf.com/

    1 reply

    Dave WattsCommunity ExpertCorrect answer
    Community Expert
    March 14, 2011

    Yes, you can simply wrap your CFMODULE (or anything else that generates output) with the CFSAVECONTENT tag.

    Dave Watts, CTO, Fig Leaf Software

    http://www.figleaf.com/

    http://training.figleaf.com/

    Dave Watts, Eidolon LLC
    March 15, 2011

    Dave,

    that is exactly what I am looking for.

    thanks a lot