Server Side Include Inside Template?

Ask a Question related to Macromedia Dreamweaver, Design and Development.

  1. #1

    Default Re: Server Side Include Inside Template?

    Hi Johnny
    > So I thought, why not put an include in a template. I did and it works,
    sort of. The include pulls in an htm file that has a table of rollover
    buttons in it. When I do a DW preview (F12), the code is there, but the
    images are missing. This is true whether I preview the template or a page
    based on the template.
    >
    > However, when I upload the page based on the template to the server, and
    run it, it works.
    >
    > Is there a trick to getting DW to properly preview the template and page
    in DW?

    If it works on server and not on your local machine then it is a root
    relative path issue to the images on your local machine. Do you have a
    testing server set up on your local machine that you run the pages through
    at preview time?

    Also, your include files should NOT contain the tags <html>, <head> nor
    <body> and their associated closing tags.

    Hope that helps.

    --
    Brad Halstead (brad at dreamweavermx-templates.com)
    TMM Volunteer [Contribute] - [url]http://www.macromedia.com/go/team/[/url]
    DreamweaverMX Templates - [url]http://www.dreamweavermx-templates.com[/url]



    Brad Halstead - TMM Guest

  2. Similar Questions and Discussions

    1. Server-side include
      I try to access a file in other directory using server-side include from dreamweaver toolbox, and always give me this error: Warning:...
    2. Server Side Include with Contribute 3
      An earlier thread about Server Side Include said to use <!-- #include virtual=... in place of <!-- #include file=... But I am confused if the...
    3. Any way to include an HTML form with server-side controls?
      Hi all, I have a page with a mutli view control where one of the views needs to contain a separate HTML get form with a submit button that goes...
    4. Alternative to Server Side Include?
      Is there any alternative way to put one file on a server and have it update itself to everypage like SSI does? I am looking for a modern way? Is...
    5. Server Side Include
      dw preferences-->Invisible Items the listing on bottom- render included files in design view. -- Team Macromedia Volunteer for Dreamweaver...
  3. #2

    Default Re: Server Side Include Inside Template?

    If it works on server and not on your local machine then it is a root
    relative path issue to the images on your local machine. Do you have a
    testing server set up on your local machine that you run the pages through
    at preview time?

    Also, your include files should NOT contain the tags <html>, <head> nor
    <body> and their associated closing tags.



    JohnnyA webforumsuser@macromedia.com Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

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 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139