You can call your tag and have it return a variable to the calling page. To
do that, use the CALLER scope.
For example, as the last line in your tag use:
<cfset CALLER.LinkFile = EVALUATE("#ATTRIBUTES.query#.LinkFile")>
Then in the calling page call the tag before the anchor tag and rewrite the
anchor tag to look like:
<a href="<cfoutput>#LinkFile#</cfoutput>">Link</a>
Russel
============================================================
Russel Madere, Jr. Senior Web Developer
ICQ: 5446158 http://www.TurboSquid.com
Some days you eat the bear; some days the bear eats you.
============================================================
> -----Original Message-----
> From: James McCullough [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, January 17, 2001 17:01
> To: CF-Talk
> Subject: Link to Custom tag
>
>
> I am wondering if there is a way to this.
>
> Normally a custom tag looks like this: <cf_CustomTag name="foo" query
> ="foo2">
>
> How would you escape this so that this works without referring to the
> template directly as a file?
>
> <a href="<cf_CustomTag name="foo" query ="foo2">"> Link</a>
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists