cfinclude in custom tags...where does it look for theinclude files?

Ask a Question related to Coldfusion - Getting Started, Design and Development.

  1. #1

    Default cfinclude in custom tags...where does it look for theinclude files?

    Hi....I have some custom tags with cfincludes in them. My application.cfm file
    has a variable called APPLICATION.INCPATH= /project/includes/ and in the custom
    tag I would have the cfinclude tag <CFINCLUDE
    TEMPLATE="#APPLICATION.INCPATH#/test.cfm". The custom tags had problems
    locating the custom tags. I even tried
    APPLICATION.INCPATH=../project/includes. That didn't work either. The custom
    tags seem to have problems locating these include files. Is it looking in a
    specific place? Please note that it is not having a problem locating the
    custom tags but instead the include files within the custom tags. Any help is
    much appreciated. THANK YOU!

    PhatTweety Guest

  2. Similar Questions and Discussions

    1. Custom Tags
      Is it possible to customize the behavior of standard tags? I would like my application to perform a few extra steps prior to the execution of...
    2. CFX or JAVA Custom TAGS ?
      Hello, I would like to know which type of custom tags are easier and faster to use in my ColdFusion pages, CFX tags ? Or java custom tags ? Thanks a...
    3. Flowchart cfinclude, CFCs, & Custom Tags
      What shapes would you use for cfincludes, CFCs & Custom Tags? How do you point to them, outside the main flow line?
    4. using CFML custom tags in JSP Files
      Hello, I am trying to do a hybrid project using CFML and JSP and i would like to know if there is a way to use CFML custom tags in JSP pages. I...
    5. custom tags in Design Window
      have(in code): <ns:input type="text" name="name" value="30" /> want see in design window like <input type="text" name="name" value="30" > ...
  3. #2

    Default Re: cfinclude in custom tags...where does it look forthe include files?

    Going only on what you posted, watch the / in your lines. If you typed
    everything correctly, your variable is:

    /project/includes/

    and in your cfinclude, the template is:

    #application.incpath#/test.cfm

    If this is right then,
    1) you don't need the '/project' in the application.incpath, just 'project'
    2) you have 'includes/' in the incpath and '/test.cfm' in the cfinclude and
    only need one '/'

    This means your server is looking for:

    currentfolder//project/includes//test.cfm --notice the double '/'

    Try:
    application.incpath="project/includes/"
    template=#application.incpath# & "test.cfm"

    Just a thought. Folder '/' are funny. You also have to watch using # variables
    and "" strings together. In some instances <img src="#folder#file.gif" you can
    run them together and others you have to utilize the & to tie them.

    There may also be some limitations if you are accessing these through an HTTPS
    socket. I've had issues jumping folders in dynamically created PDF files and
    the only solution (at least without searching forever) was to use the root
    folder.

    Hope it helps a little. I'm no great expert but these are a few thoughts
    without knowing more of your code.

    AirJar Guest

  4. #3

    Default Re: cfinclude in custom tags...where does it look forthe include files?

    I'm sorry...the double slash was just a typo. I know the syntax is correct
    because when I do a cfinclude in other templates that are in my project
    directory, the templates are found without a problem. It's only cfincludes in
    custom tags. The strange thing is that it works it works on one server where
    the customtags are directly under cfusionMX/customtags but not on another
    server where the customtags are stored elsewhere. Please help.

    PhatTweety Guest

  5. #4

    Default Re: cfinclude in custom tags...where does it look forthe include files?

    have you posed this question to your hosting company or are you managing the server?
    AirJar Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139