[thelist] <CFINCLUDE> INSIDE <CFQUERY OUTPUT>?

.jeff jeff at members.evolt.org
Thu Nov 29 00:05:17 CST 2001


mle,

><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> From: mle
>
> Is it possible to use a <CFINCLUDE
> TEMPLATE="#url_from_current_record#"> within a
> <CFQUERY OUTPUT>?
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><

yes, but you'll need to make sure the contents of #url_from_current_record#
is a valid local path on the server.

><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> I've tried as much syntactic variation as I can think
> of, but no luck. I have no trouble using dynamic
> includes that are outside the query output. But move
> them inside and they keep throwing path errors.
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><

have you tried outputting the variable used for the template path to see if
it's giving you the results you expect.  it could be as simple as the paths
having a leading slash that doesn't match up with a mapping in the
cfadministrator.  or, it could be as simple as the path being wrong in
relation to the calling template.  you've gotta output the variable values
to the string to find out though.

as a precautionary measure you should probably wrap that include with a
FileExists() check just to be on the safe side.

><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> (BTW, I know this belongs more appropriately at CF Talk
> but I haven't heard anything from them for weeks).
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><

it's no less appropriate here.  i hope one of us can help you solve the
problem.

thanks,

.jeff

http://evolt.org/
jeff at members.evolt.org
http://members.evolt.org/jeff/






More information about the thelist mailing list