Skip to main content
Participant
November 20, 2006
Question

CFM into HTMl

  • November 20, 2006
  • 2 replies
  • 297 views
How can I integrate cfm template into html pages?

I have several .htm and .html pages they run on a coldfusion server but how can I include a .cfm or .inc template in those pages?
    This topic has been closed for replies.

    2 replies

    Inspiring
    November 20, 2006
    You need to change the htm/html pages to have the cfm extension, then you
    can have CF code in them, such as includes etc. Otherwise the htm pages will
    not be interpreted properly, and any CF code will simply be output to a
    browser as text.
    One thing to note, is you can have every page as *.cfm even if it doesn't
    contain any CF code in it. Now is probably a good time to go through your
    site and change all your pages to *.cfm

    Brendon

    "DesiGuru" <webforumsuser@macromedia.com> wrote in message
    news:ejsu8r$sui$1@forums.macromedia.com...
    > How can I integrate cfm template into html pages?
    >
    > I have several .htm and .html pages they run on a coldfusion server but
    > how can I include a .cfm or .inc template in those pages?


    November 20, 2006
    i believe it's web server specific. in whichever web server you're using (IIS, Apache, etc) you'd need to set up .htm/.html extensions to be processed by the CF app server the same way .cfm/.cfml pages are.