House of Fusion
Search over 2,500 ColdFusion resources here
  
Home of the ColdFusion Community

Mailing Lists
Home /  Groups /  ColdFusion Talk (CF-Talk)

CFinclude issues

  << Previous Post |  RSS |  Sort Oldest First |  Sort Latest First |  Subscribe to this Group Next >> 
>>unless you
Claude_Schnéegans
03/02/12 02:21 P
>>You cannot use a cfinclude on a .htm page
Claude_Schnéegans
03/02/12 03:53 P
Do a "view source"
Brian Thornton
03/02/12 04:08 P
Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Eileen Harberts
03/01/2012 04:16 PM

I am trying to code a cfinclude on a template page: <cfinclude template="../includes/sponsors.cfm"> to show this include when its pages are displayed.  The name of the include is correct, the location it is directing to is correct, but it will not work.  Does someone have an easy solution to help me?

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Bill Franklin
03/01/2012 04:27 PM

Are you sure you need the ".." in front of the first slash?  It could be a relative path issue.  What errors are you getting? Best regards, Bill Franklin I am trying to code a cfinclude on a template page: <cfinclude template="../includes/sponsors.cfm"> to show this include when its pages are displayed.  The name of the include is correct, the location it is directing to is correct, but it will not work.  Does someone have an easy solution to help me?

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Eileen Harberts
03/02/2012 10:09 AM

> Thank you for your response.  I did take the ".." away:  <cfinclude template="/includes/sponsors.cfm">  and it still did not display the include.   There are not any errors that pop up, it just does not display. Thank you, Eileen Are you sure you need the ".." in front of the first slash?  It could > be a relative path issue.  What errors are you getting? > > Best regards, ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Bill Franklin
03/02/2012 10:29 AM

Try a cfabort showerror="Here I am" in the included page.  Also, try using the fully qualified path name for the include to see if that works. Freundliche Grüße / Best regards, Bill Franklin Computer Integrated Mfg. Bayer CropScience LP 8400 Hawthorne Road, Room 2447 Kansas City, MO 64120 Tel: +1 816 242 2148 Fax: +1 816 242 2047 E-mail: bill.franklin@bayer.com Web: http://www.bayercropscience.com Vorstand: Sandra E. Peterson, Vorsitzende   |  Lykele van der Broek, Achim Noack, Rüdiger Scheitza, Michael A. Schulz Vorsitzender des Aufsichtsrats: Werner Baumann Sitz der Gesellschaft: Monheim am Rhein   |   Eintragung: Amtsgericht Düsseldorf, HRB 46985 > Thank you for your response.  I did take the ".." away:  <cfinclude template="/includes/sponsors.cfm">  and it still did not display the include.   There are not any errors that pop up, it just does not display. Thank you, Eileen Are you sure you need the ".." in front of the first slash?  It could > be a relative path issue.  What errors are you getting? > > Best regards, ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Russ Michaels
03/02/2012 10:49 AM

if there is no error then the cfinclude is working, the content is simply not being disaplyed. Do you have a cfsetting somewhere set to only display cfoutpout maybe ? On Fri, Mar 2, 2012 at 3:28 PM, Bill Franklin <bill.franklin@bayer.com>wrote: ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Russ Michaels
03/01/2012 04:31 PM

What do you meanby it does not work, is there an error, the file is not included, what? Regards Russ Michaels From my mobile On 1 Mar 2012 21:16, "Eileen Harberts" <eileen@tdai.net> wrote: ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Eileen Harberts
03/02/2012 10:10 AM

>By 'not work' I mean the include does not display.  There is no error message, just a page not displaying the include. Thank you, Eileen What do you meanby it does not work, is there an error, the file is not ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Stephens, Larry V
03/02/2012 01:26 PM

This is a stab in the dark - but it did catch me once. It's not a cfinclude on a cfincluded page, is it? I didn't bother to test it just now but I don't believe that will work. I'd check Firebug or IE F12 to see if it gives you a clue. >By 'not work' I mean the include does not display.  There is no error message, just a page not displaying the include. Thank you, Eileen What do you meanby it does not work, is there an error, the file is not ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Cameron Childress
03/02/2012 02:11 PM

> This is a stab in the dark - but it did catch me once. It's not a > cfinclude on a cfincluded page, is it? I didn't bother to test it just now > but I don't believe that will work. > For the record, that *will* work. -Cameron ...

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Dave Watts
03/02/2012 02:18 PM

> This is a stab in the dark - but it did catch me once. It's not a cfinclude on a cfincluded page, is it? I didn't bother to test it just now but I don't > believe that will work. This will work fine, actually, just like Cameron said, unless you include a file that includes the file you're including. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ http://training.figleaf.com/ Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on GSA Schedule, and provides the highest caliber vendor-authorized instruction at our training centers, online, or onsite.

Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Claude_Schnéegans
03/02/2012 02:21 PM

>>unless you include a file that includes the file you're including. Even this will work, provided you have a test to stop the recursive loop.

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Jeff Langevin
03/02/2012 02:26 PM

Aren't they all also relative to the original including templates path though even though they're nested?  I feel like I got bitten by that once... >>unless you include a file that includes the file you're including. Even this will work, provided you have a test to stop the recursive loop.

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Larry Lyons
03/04/2012 01:12 PM

> include a file that includes the file you're including. CF_Inception!

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Claude_Schnéegans
03/02/2012 03:16 PM

>>Aren't they all also relative to the original including templates path though even though they're nested? I would say yes. Better do this in the same directory. Any way, I do not relly see a good occasion for using recursive includes, because they will all work on the same variable scope. I sometimes use recursive custom tags though.

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Brian Cain
03/02/2012 03:35 PM

Not to state the obvious, but you are trying to include it from a .cfm page right?  You cannot use a cfinclude on a .htm page. On Fri, Mar 2, 2012 at 2:16 PM, <> wrote: ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Claude_Schnéegans
03/02/2012 03:53 PM

>>You cannot use a cfinclude on a .htm page Well, actually you can, ... but it will include nothing ;-)

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Andrew Scott
03/02/2012 03:57 PM

Actually you can't being an html file, it will never be run by ColdFusion, and will only be seen as a standard html comment. -- Regards, Andrew Scott WebSite: http://www.andyscott.id.au/ Google+: http://plus.google.com/108193156965451149543 On Sat, Mar 3, 2012 at 7:53 AM, <> wrote: ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Brian Cain
03/02/2012 04:01 PM

Yes Andrew, that was the point I was making. On Fri, Mar 2, 2012 at 2:56 PM, Andrew Scott <andrews@andyscott.id.au>wrote: ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Andrew Scott
03/02/2012 05:07 PM

Well the point was lost, because saying you can, implies that it can be called or used by ColdFusion. -- Regards, Andrew Scott WebSite: http://www.andyscott.id.au/ Google+: http://plus.google.com/108193156965451149543 ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Brian Cain
03/03/2012 12:04 AM

Andrew:  You must have meant that for the other guy.  My original reply said you cannot  use cfinclude in a .htm file.  I will add the addendum that being the case in a traditional server configuration. Brian Cain On Mar 2, 2012, at 4:06 PM, Andrew Scott <andrews@andyscott.id.au> wrote: ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
DURETTE, STEVEN J
03/02/2012 04:06 PM

Actually you can... The web server can be set up to have ColdFusion process any file you want it to. I had to work on one site once where it was all ColdFusion, but all the extensions were .htm. Yes Andrew, that was the point I was making. On Fri, Mar 2, 2012 at 2:56 PM, Andrew Scott <andrews@andyscott.id.au>wrote: ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Brian Thornton
03/02/2012 04:08 PM

Do a "view source" Depending on the server .html could be rendered at cfm ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Andrew Scott
03/03/2012 12:13 AM

Then it is not an html file then is it, if someone sets the server up to server files to ColdFusion server, I would not consider this an html file. -- Regards, Andrew Scott WebSite: http://www.andyscott.id.au/ Google+: http://plus.google.com/108193156965451149543 On Sat, Mar 3, 2012 at 8:07 AM, Brian Thornton <Brian@cfdeveloper.com>wrote: ----- Excess quoted text cut - see Original Post for more -----


<< Previous Thread Today's Threads Next Thread >>

Search cf-talk

October 02, 2014

<<   <   Today   >   >>
Su Mo Tu We Th Fr Sa
       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   

Designer, Developer and mobile workflow conference