Skip to main content
January 9, 2008
Question

Search order for multiple custom tag paths

  • January 9, 2008
  • 1 reply
  • 363 views
If the same file name exists in more than one of the custom tag paths, how does ColdFusion determine which one will be used?
    This topic has been closed for replies.

    1 reply

    Participating Frequently
    January 10, 2008
    If you have two different custom tags using the same name, in two different CustomTag locations, than you're setting yourself up for trouble.

    Some options:

    1) Rename your custom tags so they have unique names
    2) Use <cfmodule> or <cfimport> to invoke your custom tag(s), specifying the full path to the custom tag (or library) that you actually want to use (bonus: this helps reduce ambiguity)