Server-side includes not working

Running CF9.x on Apache 2.2 Win 7.
I inherited an older html multiple page site that we are breaking down into includes using html server-side includes:
e.g. <!--#include file="includes/sidebar.html" -->,  and saving the page as a .html file, which is then <cfincluded> in a .cfm file.
Is there a way to get <!--#include file="includes/sidebar.html" --> include working on a CF page? All I see is the contents of the page, but none of the sidebar.html, or header.html, etc.
I know I could switch to cfincludes, but the boss LOVES to muck around with the html side of things.
TIA,
Doug

I know I could switch to cfincludes, but the boss LOVES to muck around with the html side of things.
All the more reason to do it, surely?
But anyway...
I've never used a server-side include, but it looks to me that they just load the file and return it at that position in the document.
For CF code to be executed, the file needs to be REQUESTED, so it won't be a starter with server-side includes.
Adam

Similar Messages

  • Server Side Includes not displaying in DW CS3 design view

    I have this code in my page (see below):
    When I open the file in Dreamweaver MX 2004 in design view,
    the page displays correctly. That is, I see the correct styles from
    the style sheet contained in Head_Standard.html and the logo/menu
    in Logo_TopMenu.html
    When I open the page in DW CS3, I do not see the effects of
    the style sheet and I do not see the logo/menu.
    However, when I change the code for the first include from:
    virtual="/ServerSide
    to
    virtual="
    ../../ServerSide
    then the page renders correctly in Dreamweaver CS3.
    My first reaction was: what?! And my question is: how do I
    use a root reference inside the head and get it to display properly
    in DW CS 3?

    "Go to Edit > Preferences > Invisible Elements >
    Server-Side Includes (Check this box) to show contents of included
    file"
    I already do this.
    For me:
    /ServerSide... does NOT work
    ../../ServerSide... works
    So, a relative reference works and a reference to the root
    does not. I have over 20 websites with root references and I need
    this to work in DW9.

  • Server Side Includes not rendering correctly in Firefox with Layers

    Hi
    The server side includes are not correctly rendering with layers in firefox. From my site here:-
    http://www.osteriastecca.com/index.php
    the home_page.php content renders above a layer on the index.php page. Initially I thought this might be a Flash layer issue but the wmode is set correctly to transparent and it works fine with a normal ssi. It also works fine in Firefox without a server side include as you can see here:-
    http://www.osteriastecca.com/index_old.php
    Works fine in IE and Safari, but not Firefox.
    How can this be rectified?
    Regards
    Glennyboy

    What testing server setup do you have? Are you using something like WAMP?
    What do you see on screen which tells you the SSIs are not rendering? Any error message?

  • Server-side includes not showing in new DW CS5.5. Any suggestions?

    I have used DW for years and years and have never had any problems. I just installed CS5.5 and am not seeing my php includes in the design pane. I've searched the forums but have not found a working answer.
    I'm editing files I've edited in CS5 and earlier with no problem.
    I've checked the server-side includes box in the configuration but no change occurs.
    Does anyone have any suggestions?

    What testing server setup do you have? Are you using something like WAMP?
    What do you see on screen which tells you the SSIs are not rendering? Any error message?

  • Server Side Include not functioning the same across website

    digitaldealershipsystem.com
    <!--#include file="/includes/navigation.php" -->
    ** this is the navigation pulldown.
    This works on most of the main pages
    When you go to
    digitaldealershipsystem.com/live.html
    digitaldealershipsystem.com/live2.html
    digitaldealershipsystem.com/live3.html
    The same is included but does not work on Chrome, but does work on Firefox
    To restate, the naming is the same on all web pages, and it works on Chrome -- except for these "live" pages
    On Firefox, they work on all pages, included live pages
    For testing purposes on the following page, I tried 'virtual' file and that did not change the results in either browser
    digitaldealershipsystem.com/live4.html
    My thoughts:
    If there is a conflict on the page, then why only is Chrome being effected
    Any ideas?

    If clearing the cache does not help, then check your code validation - you have several errors. Server side includes are browser independant - because they are assembled on the server, not the client. If there's a difference in rendering between browsers, it has to do with your html/css and has nothing to do with SSI.

  • Server-side includes not rendering

    Hi, I'm on CS5.5 (Windows operating environemnt). The server-side includes are not rendering in Live view now, whereas they were previously. Is this some sort of configuration issue, if so can you help me fix it.

    What testing server setup do you have? Are you using something like WAMP?
    What do you see on screen which tells you the SSIs are not rendering? Any error message?

  • Main.asc server side script not working

    Here the simple script i put at server seem like is not working also enclosed screenshot for the adminconsole
    my server side file main.asc save at /opt/adobe/fms/application/playtechmnflive/
    my doing FMS edge server.
    application.allowDebug= true;
    application.onAppStart = function(){
            this.eventTime = (new Date().valueOf() + 10000);
            this.timer_int = setInterval(checkForEvent, 1000, this);
    function checkForEvent(app){
            var now = new Date().valueOf();
            if(now > app.eventTime) {
                    trace("something");
            }else{
                    trace("damn");

    The script is fine (at least i assume u want the timer working with no errors). The thing is that u can't put any code nor apps on the edge node. Put it on the origin and hook up your edge to that origin.

  • Server side includes not visible on apache

    Hi when i upload an HTML file with includes on an apache server the includes are not visible. I used the "virtual" parameter. on a windows server it works, also local works everything great. i also tested with PM "file" didn't work. can someone help me out? Thnx

    >Hi when i upload an HTML file with includeson an apache server the includes are not visible.
    The includes are not visible, but is the include code visible in the source code? That will tell whether the server is parsing for includes. By default, the server is probably set not to parse .html files for includes. Read the link that SnakEyez suggested, but also be aware that you can configure your server to parse .htm(l) for includes.

  • How do I get Server Side Includes to work with the .html extension?

    Do I have to rename the files with .shtml? This is an existing web site that is probably NOT running on an OS X web server, that I want to load onto my Snow Leopard server as a testing environment before uploading to the live site.

    Do I have to rename the files with .shtml? This is an existing web site that is probably NOT running on an OS X web server, that I want to load onto my Snow Leopard server as a testing environment before uploading to the live site.

  • Server side include does not appear in browser

    I've imbedded a server side include within an html file. I
    can see it in the Dreamweaver design previewer, but it does not
    appear when displaying the html in a browser. I've tried saving the
    included file as "html", "htm", "shtml", and "shtm". Nothing seems
    to work.
    Any guesses?

    On apache, you have to use either shtm(l), or PHP. And in the
    event that
    you use the latter, the include directives must be PHP
    includes, not HTML
    includes, e.g., this -
    <?php require('includes/foo.php') ?>
    not this -
    <!--#include file="includes/foo.inc" -->
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "Dave Bar" <[email protected]> wrote in message
    news:frbps3$f6o$[email protected]..
    > Interesting you mention this, I was just experementing
    with this today.
    > I traditionally use .asp and IIS when using Include
    techniques.
    >
    > I have a client on an apache server, and they can't run
    asp, so I had to
    > test using html.
    >
    > This is what I found.
    > Since I'm running IIS, I had to use shtml (their apache
    server may run it
    > with regular html).
    >
    > I also had to make sure I was using the IIS Localhost in
    my url.
    > so this worked:
    >
    http://localhost/tests_and_examples/TEMP/TestInclude.shtml
    >
    > While this did not:
    >
    http://localhost/tests_and_examples/TEMP/TestInclude.html
    (notice the
    > missing s in shtml)
    >
    > And this did not:
    >
    file:///C:/Inetpub/wwwroot/tests_and_examples/TEMP/TestInclude.shtml
    > (Notice a regular file:/// instead of using IIS
    localhost)
    >
    > Hope that helps
    > -Dave
    >
    > "rsimmons1957" <[email protected]>
    wrote in message
    > news:frboib$dn5$[email protected]..
    >> I've imbedded a server side include within an html
    file. I can see it in
    >> the
    >> Dreamweaver design previewer, but it does not appear
    when displaying the
    >> html
    >> in a browser. I've tried saving the included file as
    "html", "htm",
    >> "shtml",
    >> and "shtm". Nothing seems to work.
    >>
    >> Any guesses?
    >>
    >
    >

  • Server side includes: outdated and not supported by host?

    I've been using SSI's for ages with no problem from any host. Recently I signed up with a new web hosting company, one of the more established ones in the Seattle area. They do not support SSI's and claim that using them is not safe and is not a modern approach to web design. They suggested I use a more advanced programming language to create my sites, such as ASP.NET (something I have no desire to do).
    Are server side includes outdated and no longer the way to do things? I find that hard to believe.
    -Jesse

    Are server side includes outdated and no longer the way to do things? I find that hard to believe.
    That language is from Microsoft who seem to think so along with Windows based hosting providers offering ASP.NET.
    IIS no longer comes with SSI installed by default. It has to be configured by the hosting provider.
    http://blogs.iis.net/robert_mcmurray/archive/2010/12/28/iis-notes-on-server-side-includes- ssi-syntax-kb-203064-revisited.aspx
    However, classic SSIs (in the sense of including static content from one page inside another) are still one of the most powerful, safe and flexible tools for managing repetitive page elements in any web page. Not to mention easy.
    ASP.NET has its own way of doing the equivalent of SSIs - and lots more beside but much of which does not interest web designers at this stage.
    http://stackoverflow.com/questions/894720/asp-net-equivalent-of-server-side-includes
    http://searchsoftwarequality.techtarget.com/answer/Alternatives-to-server-side-includes-fo r-ASPNET

  • Contribute changing relative path for server-side include

    I am using Contribute CS3, version 4.1, and my pages crash
    every time a send a draft for review, because Contribute is
    rewriting a relative URL in a server-side include.
    The server-side include (before I send for review) reads:
    <!--#include file="../foo/bar.fileextention"-->
    After I edit other portions of the page and send the draft
    for review, it reads:
    <!--#include file="http:
    //www.servername.com/foo/bar.fileextension"-->
    Which results in the draft being unreadable.
    Is there any way to tell Contribute not to monkey with this
    URL? I have hunted, read the forums, checked the knowledge base,
    and coming up empy.
    Thanks in advance for any help you can provide!! I really
    appreciate it!
    -Nicholas

    Answering my own question.
    I researched this complete forum and with taking ideas from
    different posts, I was able to figure this out. I thought I would
    post it for anyone else needing to know the answer in one place:
    Include tags must read:
    <!--#include virtual="includes/fileName.html"-->
    (Include file is NOT a real HTML doc -- no tags in file
    except for CSS, as it would be used if not using Contribute.)
    No reference to .dwt needed nor Template created.
    No Edit instance tags needed anywhere.
    Contribute user navigates to page:
    [Upper right corner] Click Choose...
    [In my structure] User opens includes folder (double clicks)
    User selects THE file (clicks OK)
    User clicks on Edit Page button
    (Text is now editable.)
    User edits text.
    User clicks on Publish button.
    Worked for me several times trying.
    - Janet

  • Server-Side Include Issue - Please Help

    I am having trouble using server-side includes in
    Dreamweaver. When I use the SSI to insert the header file, the
    header document shows up on the page in design view, but I cannot
    click anything. The cursor turns into a "no sign" no matter where
    it is on the page. I cannot see anything but the header document,
    and I cannot click outside of it or anywhere else in design view.
    When I test the whole document in a web browser it actually seems
    to work just fine. I see the header and the other text on the page
    (unlike in dreamweaver, I cannot see anything but the header). Also
    in Dreamweaver code view, the php tags and the included filename
    are in red. This is the code for the test document:

    On Wed, 7 Mar 2007 04:02:29 +0000 (UTC), "AngryCloud"
    <[email protected]> wrote:
    > <?php include("header.php"); ?>
    What does the code look like in header.php? Does it have
    <html>, <head>
    and <body> tags? It should not.
    Gary

  • Server side function not get called after dispatching cairngorm event second time on same page

    Hi All,
    I am facing a urgent issue regarding cairngorm event. Actually my page contain 3 button add,delete,save
    and  clicking of any button I do the respected functionality. For ex:
    I click the add button & on clicking of add button I fire a cairngorm evnt & after getting response from server side that the record is added
    I displayed a message that the record is added & update the data source.
    After addition of the record , with out going to other page if I perform the same functionaly(Like adding another record) on same page the cairngorm
    event not call the server side function  -  after debugging I find out that cairngorm event  reach to the corresponding excutecommand function & called that function  but it is not calling my server side function & I also din't get any error message .
    I dont know why  the server side function not get called?. similarly if I try for delete or update case the same things happend. Only for the first time it works properly but not for the second  time.
    Could any of  you please tell me why the cairngorm event not calling the server side function.
    Thank you for your kind assistance.
    Regards,
    Ujjwal

    Okay, well I think I've worked out the problem.
    In ASP.NET we would typically bind repeating controls such as DataLists and Repeaters manually using <i>Control</i>.DataBind(), because we're usually using a separate class library containing collections for our objects. Seems the SAP Table control doesn't like this approach.
    I changed the code so that the databinding is specified on the control, and call the Page's DataBind() method and it all worked fine.
    One tip: because the collection I used to bind to is in a separate class library, I receieved a <i>BC306523: Reference required to assembly MyAssemblyName...</i> message, even though I had a reference to the assembly in my project and the DLL is being properly deployed. To fix this, you must include the following directive at the top of the component's ASCX file:
    <%@ Assembly Name="AssemblyName" %>

  • Server Side Includes and Divs

    I have a template (dwt) for my site with editable regions for
    menus. I want to use Server Side Includes for the menu, as not all
    the pages will have the same menu.
    I have designed the site template (and pages) with css and
    divs. The area for the SSI is a div of size 145x335. The menu which
    I want to put inside this div will be a div based menu. I havent
    had any luck displaying the Div from the SSI yet. I have been
    looking on Google for help, but not much luck. I can get the Div to
    appear but the formatting doesnt show up.
    Im putting the SSI code in where I want it on the page, but
    im not sure exactly which code to get rid of in the shtml file. I
    know I need to remove body, head parts etc
    My site template uses CSS stored on the document, not an
    external css file.
    Any ideas?

    > Im sure Ive not got it right yet!! My head wont work
    lately!
    Yes. It's not working well here, either.
    Create your template with the editable region. In it, have
    links to a) the
    general stylesheet for all the pages, and b) the general
    stylesheet for all
    of the includes (these don't really need to be separate
    files). Spawn a
    child page, drop in the desired include, and save that page
    as
    whocares.shtml.
    That's it....
    The incude files themselves can be names anything you want -
    I like the
    'monkeybutt' extension, e.g.,
    yourinclude.monkeybutt
    The include files can make reference to CSS selectors, but
    cannot have
    embedded CSS rules, or links to external CSS files.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "~Billy~" <[email protected]> wrote in
    message
    news:eq234v$eq6$[email protected]..
    > Ive made myself confused now! I need it spelling out to
    me!
    >
    > Ok, a template file (dwt) with its css as an external
    style sheet.
    >
    > Rest of the sites pages made from the template file.
    >
    > Next, the template has one editable region for a choce
    of 2 div based
    > menus to
    > be placed into. Place either of these div menus into the
    template editable
    > region by creating two seperate SHTML files - one for
    each menu with the
    > body/head removed(and with internal or external css?)
    >
    > Next put the SSI code into the body of the template
    where I want the SSI
    > to
    > appear.
    >
    > Im sure Ive not got it right yet!! My head wont work
    lately!
    >

Maybe you are looking for

  • CSM error message on ASA Failover interface

    Hello We use CSM 4.4 to manage our ASA firewalls.                    One of them is a failover pair. CSM now always creates a warning message when approving an activity, stating: FWSVC Access Rules Warnings ->  The following interfaces GigabitEtherne

  • How do I get a new value for the service name field and update it in Connection Properties?

    I am running Windows Vista. I just upgraded to Firefox 4. When I try to log on to the internet, it tells me the proxy server is refusing connections. A diagnostic reported Error 815 and said the remote server is not responding because there is an inv

  • ERROR: - ID21108 While Importing Keystore from Third Party

    Hello, I am attempting to import a third party keystore in to an SAP PI 7.1 Java instance using the URL below as the process for importing. While attempting to import I am receiving the error below. I am currently running using the unlimited local_po

  • HT4889 how do I clean out a computer after migration

    We are moving the users all around at home. Son got MacBook pro, I am taking his IMac, Daughter is taking my Macbook pro and little one is getting the other Imac. I have migrated all info from son's Imac to Mhis MacBook pro. Now what

  • Force other users to logout

    I can I force a logout of a managed user when using fast user switching?