[devtalk] ssi virtual - site check please

joseph harris joseph-harris at topmail.co.uk
Sat Oct 3 22:53:58 BST 2009


From: "PatrickG" 
> joseph harris wrote:
>> That's what I started with. I've just done a test and this is the response [an error occurred while processing this directive] on both a main folder page, and a subfolder.
>>
>> the test text file has src="/images/pound_page_head3.gif"
>> the test shtml files have  <!--#include virtual="/test.txt-->
>>
>> The main folder works on src="images/pound_page_head3.gif" in the test file
>> This works on existing sub-folder pages, but now not on the test src="../images/pound_page_head3.gif"
>>
>> On the face of it there is obvious error by me... But it is all cut and paste, from working to test. And IE is doing the same as html-kit, so the fault isn't in the program. I'm going to have to leave it for now and go down the path that is working. It is a mystery which I'll solve later.
>>
>> Thanks for the help and advice. 
>>   
> Joseph, I think your are omitting tags (or their components) in your 
> text/include file. Perhaps you could post the contents of "test.txt" or 
> provide a link to the actual file.
> Based on what you have posted in this thread I think you need to change 
> your "src" line to:
> 
> <img src="/images/pound_page_head3.gif" />   If at all possible, as Ross 
> said, use the full path from the root (or at least from the root of the 
> website).
> 
> I fully understand wanting to minimize files and typing, especially if 
> you will have several pages with the same thing on them, I did this on 
> my wife's  business site.
> 
> I use separate include files to define the banner, left pane menu and 
> the right pane. That way if I make a change, I edit one file instead of 
> all pages.
> 
> For example the banner of www.charellescostumeshop.com 
> <http://www.charellescostumeshop.com/> is contained in a file called 
> banner.inc. It's contents are:
> 
>      <h1 class="headerTitle"><br />
>        <img src="images/charelles.png" width="425" height="75" 
> alt="Title Image - Charelle's Costume Shop" />
>      </h1>
> 
> Since it is complete html it can be viewed separately by visiting 
> www.charellescostumeshop.com/banner.inc
> 
> Hope this sheds some light on your dilemma.
> 
> PatrickG

Ahem. I prepared a response with detail. For the test.txt file only I find I was calling the wrong file! Now the version that calls the right file works!

Still leaves the other problem, but I'll let it rest for the moment. Maybe pick it up again in the new year.

Many thanks.


Joseph




More information about the devtalk mailing list