Professional Web Applications Themes

Server Side Include Inside Template? - Macromedia Dreamweaver

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 ...

  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. #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

Similar Threads

  1. Server-side include
    By lenisu in forum Macromedia Exchange Dreamweaver Extensions
    Replies: 0
    Last Post: August 27th, 10:45 PM
  2. Server Side Include with Contribute 3
    By janetzag in forum Macromedia Contribute General Discussion
    Replies: 2
    Last Post: November 12th, 01:33 PM
  3. Any way to include an HTML form with server-side controls?
    By paul.hester@gmail.com in forum ASP.NET Building Controls
    Replies: 0
    Last Post: September 5th, 06:19 AM
  4. Alternative to Server Side Include?
    By Neil Here in forum Macromedia Dynamic HTML
    Replies: 5
    Last Post: February 25th, 01:47 AM
  5. Server Side Include
    By Alan Ames in forum Macromedia Dreamweaver
    Replies: 1
    Last Post: July 11th, 02:55 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not 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