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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

custom tag 1

Status
Not open for further replies.

aarontra

Programmer
Oct 2, 2002
50
US
say I have a custom tag called "mycustomtag.cfm"


How and or what is the best way to dissallow it from being called by itself?

i.e

why?
because if it gets called by itself it breaks


Thank you
Aaron
 
You just have to put it in a folder that is not shared..
But if you can't ...
you can put this code in your tag
<cfif CGI.SCRIPT_NAME EQ &quot;/myfolder/mycustomtag.cfm&quot;>
<cfbreak>
</cfif>
but the best way would be to put it in a mapped folder that is not shared
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top