Welcome to the { mindfrost82.com } forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

Go Back   { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Software > Adobe Software > Dreamweaver

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-28-2008, 07:16 PM
Dobies
 
Posts: n/a
Server Side Includes

I am just starting to use SSIs and am having a hard time understanding them. I
was able to create one but one of the images doesn't show up.

The SSI is going to be the "header" with the websites main graphic. I have set
it up as a table with three rows. The first row contains the main graphic. I
simply did a drag and drop and it shows up. The second row contains a
background image with text over it. The third row contains a graphic which is
also a background image.

The images in the 2nd and 3rd row show up fine. However the main graphic in
the first row doesn't show up at all whether I do a drag and drop or set it up
as a background image.

I have said the file as a .shtml and then went to the page I wanted to include
it in and did the Edit>Insert>Server Side Include. I am using DreamWeaverCS3. I
also made sure that there was no head or body tags in the SSI file. So I'm sort
of at a loss here. I really want to use SSIs. I have built two websites using
templates and both sites have over 200 pages. I really need to get up to speed
on this and am having a hard time understanding it. Any help would be greatly
appreciated.

Reply With Quote
  #2 (permalink)  
Old 08-28-2008, 07:30 PM
bregent
 
Posts: n/a
Re: Server Side Includes

Are the included files located in the same directory as the parent file. One thing you must remember when using SSI is that resources are referenced from the point of view of the parent file.
Reply With Quote
  #3 (permalink)  
Old 08-28-2008, 09:56 PM
bregent
 
Posts: n/a
Re: Server Side Includes

I asked this already but did not get an answer. Are the included files located
in the same directory as the parent file? One thing you must remember when
using SSI is that resources are referenced from the point of view of the parent
file.

Looking at your code, I'm guessing the parent and included file are not in the
same directory. If your include file is not using root relative paths to the
image, you will have a problem.

Reply With Quote
  #4 (permalink)  
Old 08-28-2008, 10:34 PM
Dobies
 
Posts: n/a
Re: Server Side Includes

Murray -

here is the code for the Header.shtml:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<table width="956" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="100"><img src="NewMasthead3.jpg" alt="MCC" width="960"
height="96" /></td>
</tr>
<tr>
<td background="Graphics/BckBar.jpg"><table width="958" border="1"
cellpadding="0">
<tr background="../Graphics/BckBar.jpg">
<td width="96"><div align="center"><a href="http://www.mocatholic.org"
style="color:#FFFFFF">Home</a></div></td>
<td width="103"><div align="center"><a
href="http://www.mocatholic.org" style="color:#FFFFFF">About Us</a></div></td>
<td width="102"><div align="center"><a
href="http://www.mocatholic.org"
style="color:#FFFFFF">Legislative</a></div></td>
<td width="103"><div align="center"><a
href="http://www.mocatholic.org" style="color:#FFFFFF">Elections</a></div></td>
<td width="106"><div align="center"><a
href="http://www.mocatholic.org" style="color:#FFFFFF">Issue
Areas</a></div></td>
<td width="99"><div align="center"><a href="http://www.mocatholic.org"
style="color:#FFFFFF">News</a></div></td>
<td width="107"><div align="center"><a
href="http://www.mocatholic.org"
style="color:#FFFFFF">Publications</a></div></td>
<td width="101"><div align="center"><a
href="http://www.mocatholic.org" style="color:#FFFFFF">Bishops</a></div></td>
<td width="101"><div align="center"><a
href="http://www.mocatholic.org" style="color:#FFFFFF">Contact Us</a></div></td>
</tr>
</table></td>
</tr>
<tr>
<td background="Graphics/BckBar.jpg"
class="BlueBar"><!--DWLayoutEmptyCell-->&nbsp;</td>
</tr>
</table>


I understand that foo.poo meant anything but figured that you meant this to
refer to another subfile and I wasn't sure where the subfile would come into
play.



Bregent:

Sorry I didn't respond but I don't understand the question. Like I said I'm
very dense when it comes to SSI for some reason. The way I have it set up on my
machine is everything is in the same root directory. That's the way I learned
it. I'm using DreamWeaver and am on XP Pro. Just to be clear when your refer to
"directory as the parent file" you are referring to the directory the entire
website is in and not to a file "folder" that I am saving files to?

Ugh, I don't mean to take up so much of everyone's time but this is making me
nuts!

Reply With Quote
  #5 (permalink)  
Old 08-28-2008, 11:19 PM
bregent
 
Posts: n/a
Re: Server Side Includes

>The way I have it set up on my machine is everything is in the same root
directory.

It doesn't look that way. It looks like your includes are in an SSI directory:
<!--#include file="SSI/Header.shtml" -->

Reply With Quote
  #6 (permalink)  
Old 08-28-2008, 11:38 PM
Dobies
 
Posts: n/a
Re: Server Side Includes

Bergent:

So, my SSI should not be in a separate file folder within the directory? It
should be in the main file folder? Just trying to make sure I understand.



Murray,

I'm double checking everything.

Thanks to both of you!

Kathleen

Reply With Quote
  #7 (permalink)  
Old 08-28-2008, 11:45 PM
bregent
 
Posts: n/a
Re: Server Side Includes

>So, my SSI should not be in a separate file folder within the directory?
>It should be in the main file folder?
>Just trying to make sure I understand.


You have a choice. You can keep it in a different folder but use root relative
paths, as Murray outlined for you. Or, you can keep it in the same root folder.
I would go with option #1.

Reply With Quote
  #8 (permalink)  
Old 08-29-2008, 01:15 AM
Dobies
 
Posts: n/a
Re: Server Side Includes

Bregent:

Can you please define "root relative paths" or give me an example?
Reply With Quote
  #9 (permalink)  
Old 08-29-2008, 01:28 AM
Alan
 
Posts: n/a
Re: Server Side Includes

a href="../folder/file.html" is document relative
a href="/folder/file.html" is site root relative (always starts with a
leading /slash)
a href="http://example.com/folder/file.html" is an absolute path

In the bottom of the "browse to file" dialog box, there is a pulldown to
choose between "relative to document" and "relative to site root"

there are also some preferences for this in the Site Definition.
--
Alan
Adobe Community Expert, dreamweaver

http://www.adobe.com/communities/experts/



Reply With Quote
  #10 (permalink)  
Old 08-29-2008, 05:07 PM
Dobies
 
Posts: n/a
Re: Server Side Includes

Thanks everyone for your help. This has been quite a learning experience for me! I think I understand this now. Hopefully I'll get everything to work this weekend. Thanks so much!

Kathleen
Reply With Quote
Reply

  { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Software > Adobe Software > Dreamweaver


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 12:11 PM.


Powered by vBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
© 1999-2008 mindfrost82.com v11.0


Sponsors:
Adverse Credit Remortgage | Credit Card | Personal Finance | Car Loan | Credit Card Consolidation



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