There was no error, it just did not work the same as when run without cfmodule.
As in:

<cfmodule template="getcontent.cfm">
...
</cfmodule>

produced different output to

<cf_getcontent>
...
</cf_getcontent>

In getcontent.cfm, it set thistag.generatedcontent="", which did not seem to
work when calling with cfmodule.

Perhaps cfmodule sends a complete copy of the environment to the tag, whereas
the tag would normally receive a reference to the actual environment (and so
could modify it).

David

Matthew Walker wrote:
> 
> > I would actually disagree with that.
> >
> > Someone in our office tried calling a custom tag that alters the generated
> > content with cfmodule, and it did not work correctly, even though
> > it worked when
> > called the standard way. He used </cfmodule> at the end too.
> 
> What are you disagreeing with? I have it working fine. Using <cfmodule> is
> not a non-standard way. What was the error?
> 
> * you can use <cfmodule template="..."> instead of <cf_...>
> * you can use <cfmodule template="..."></cfmodule> instead of
> <cf_...></cf_...>
> 
> Are there any functional differences between using <cf_> and <cfmodule>?
> Apart from how you specify the location of the template, I'm not aware of
> any. That doesn't mean there aren't any, because there are a lot of things
> I'm not aware of.
> 
> ------------------------------------------------------------------------------
> Archives: http://www.mail-archive.com/[email protected]/
> To Unsubscribe visit 
>http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
>message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to