Re: Custom Tag with "auto" cfoutput

2005-10-25 Thread John C. Bland II
Yeah, gotcha on cfquery. Just wasn't sure if there was something under the hood I didn't know about. Well, the tag won't be used too often (not trying to reinvent the wheel) so it doesn't need to be an "enterprise" version but your suggestions are greatly appreciated. I'll look into these things.

Re: Custom Tag with "auto" cfoutput

2005-10-25 Thread Barney Boisvert
CFQUERY is not a custom tag, it's a full blown CF tag, which is basically a cross between [primitive] CFOUTPUT and CFSAVECONTENT to get the SQL statement, and then a bunch of database interaction stuff. It also deals with CFQUERYPARAM, of course. If you do go with something similar to what I outl

Re: Custom Tag with "auto" cfoutput

2005-10-25 Thread John C. Bland II
Hmm...seems like way too much but along those lines I'll try similar. No ideas on how cfquery does it? On 10/24/05, Barney Boisvert <[EMAIL PROTECTED]> wrote: > > Hellishly slow, but you could take the tag body, write it to file > (with CFOUTPUT tags), and then CFINCLUDE it inside CFSAVECONTENT.

Re: Custom Tag with "auto" cfoutput

2005-10-24 Thread Barney Boisvert
Hellishly slow, but you could take the tag body, write it to file (with CFOUTPUT tags), and then CFINCLUDE it inside CFSAVECONTENT. You'd have to manually change all the references to 'caller' scope, however, which would be messy. Not that I'm recommending that route, but it would be a way to get

RE: Custom Tag with "auto" cfoutput

2005-10-24 Thread Matthew Walker
If you sould specify that the content of a custom tag was treated as if wrapped in cfoutput, that would be a very nice CF feature. Unfortunately you can't. > Now, I know cfquery has a built in cfoutput. How can I add a > built in cfoutput into my custom tag? Hopefully I'm clear as > to what I'm s

Custom Tag with "auto" cfoutput

2005-10-23 Thread John C. Bland II
Aight, this is my first shot at creating a custom tag. Usage: SELECT * FROM table WHERE blah = 'prefix#data#' (where #data# is a string. Ex - data = "hi" so "WHERE blah = 'prefixhi") Aight, without any prefix using '#data#' seems to work fine but as soon as a prefix is in place it doesn't eval