Results 1 to 1 of 1

Thread: Creating Your Own Custom Tag Paths

  1. #1
    Join Date
    Nov 2009
    Posts
    99

    Default Creating Your Own Custom Tag Paths

    Starting in ColdFusion 8, ColdFusion allows creation of Custom Tag Paths in each site's Application.cfc file. This allows you to create and manage your Custom Tag Paths without having to use CF Administrator (ie. submit a support ticket). The following steps will help you set up a Custom Tag Path:

    • If you do not already have an Application.cfc file in your site's Web root, create one now.
    • Place the following code in the Application.cfc file and save:
      Code:
      <cfcomponent>
      <cfset THIS.customtagpaths="d:\home\yourdomain.com\wwwroot\customtagfolder">
      </cfcomponent>

    In this case, you'd replace "yourdomain.com" with your domain name, and "customtagfolder" with the name of the folder you created for your custom tags.

    Now you have successfully added your custom tag path. If you have multiple tag paths to add, try using the following code instead:
    Code:
    <cfcomponent>
    <cfset THIS.customtagpaths=ListAppend(THIS.customtagpaths, "d:\home\yourdomain.com\wwwroot\customtagfolder")>
    </cfcomponent>

    References:
    CF9 Livedocs - Application Variables
    FusionGrokker - Relative Custom Tag Paths: Friend or Foe?
    Last edited by jakeh; April 18th, 2010 at 01:57 PM.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •