Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

No custom tag, Don't show content..

Status
Not open for further replies.

webmigit

Programmer
Joined
Aug 3, 2001
Messages
2,027
Location
US
Wanna know the horror of writing custom tags? They show the generatedcontent.. IE...

<cf_tag>me</cftag> shows me on the page...

I can't begin cfsilent on opening of tag and end on ending because that requires CFELSE to be nested inside CFSILENT and CF says that's a no no.

I can use cfsetting, but that won't do the trick because it kills thistag.generatedcontent...

Right now what I'm doing is just opening <!-- on tag open and --> on tag close.. that at least hides it on the page so I can work with it...

Any ideas folks?

Tony Hicks [ Founder of <A href=&quot; online bible. ]
 
If using cf 5 try saving the contents to a variable using cfcontent. Also why would you not want to display output between custom tags but still have the output between the tags?
 
What output is being sent to the client your query? Do you have any code we can see?
 
The code appears in <!-- -->'s right now to hide it.. but of course its in the source code.

So.. <CF_xQuery...>b</CF_xQuery> would send b as the sql statement but it shows b on the page.. unless I say..

If thistag.executionmode is &quot;Start&quot;: <!--
Else: -->

Then b appears in the source code as <!-- b -->

Does that answer your question? [ Founder of <A href=&quot; online bible. ]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top