Ask a Question related to Coldfusion - Getting Started, Design and Development.
-
PhatTweety #1
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
-
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... -
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... -
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? -
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... -
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" > ... -
AirJar #2
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
-
PhatTweety #3
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
-
AirJar #4
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



Reply With Quote

