Well in CFMX you can use cfimport to map a folder of tags onto a prefix,
e.g. <stringlib:striphtml ... > . The downside is that it has to be used at
the top of each file in which you want to use custom tags. I think it's
still worth it though -- you get used to the lines of cfimport tags. And it
encourages you to be a bit more organised about your custom tags.

Another thing you can do is put the path to your tag folder in a variable
e.g. "../../../../customtags/" then put that in the cfmodule. Even better is
to note that generally all servers (even shared) will have the "/" mapping
set up. You can use that to set a variable for the path that will work from
any location within your site - you just need to know the name of the folder
your site lives in (which you can get from gettemplatepath() ).

Matthew Walker
Electric Sheep Web
http://www.electricsheep.co.nz/

----- Original Message ----- 
From: "Sean" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Friday, July 04, 2003 7:41 PM
Subject: Defining Custom tag Paths in Code


> Can it be done?
>
> Shared server model - trying to avoid sandbox/security issues with
multiple custom path mappings - can I define the custom tag paths in code?
Anybody know the syntax off hand?
>
> Cheers
> Sean
> 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
http://www.cfhosting.com

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to