You can't break out cfif's into different pages and then include them, you
have to have the cfif then else all in the same page.
Robert Everland III
Web Developer Extraordinaire
Dixon Ticonderoga Company
http://www.dixonusa.com
-Original Message-
From: Gilbert Midonnet [mailto:[EMAIL
So I think you've already discovered that CFINCLUDE is not that granular.
It seems as though you just want a way to encapsulate your CFIF expression.
UDF (User Defined Functions -- introduced in CF5) may be the way to go here.
--
Mosh Teitelbaum
evoch, LLC
Tel: (301) 625-9191
Fax: (301)
: cfinclude, how granular can you make it?
You can't break out cfif's into different pages and then include them, you
have to have the cfif then else all in the same page.
Robert Everland III
Web Developer Extraordinaire
Dixon Ticonderoga Company
http://www.dixonusa.com
-Original Message-
From
A complete cfif block has to be on the same page. You can of course use
includes/custom tags/components between the cfif statements.
Also for better performance you almost never nead to use pound signs in if
statements and you will also get better performance by scoping variables.
For example:
I forgot to include (this is a continuation of what's written below)
is that it one cannot use cfinclude in a cfif
cfif
cfinclude
So, how granular can the includes be?
// glm
How granular can you make your includes? I ask because I'm unable to breakup
an if-else clause. If I
WHAT I WOULD LIKE TO BE ABLE TO DO:
cfinclude template=holiday.cfm
td class=holiday#ThisDay#/td
cfelse
tda href=#ThisDay#/td
cfif
thx
// gilbert midonnet
You can't include a portion of any other tag, whether it's a cfif or
something else... so you couldn't have this
I forgot to include (this is a continuation of what's written below)
is that it one cannot use cfinclude in a cfif
cfif cfinclude
So, how granular can the includes be?
// glm
You can't include any cfml tag inside of any other cfml tag ... It would
destroy the xml (or xml-like) format
7 matches
Mail list logo