Forum Moderators: mack

Message Too Old, No Replies

Webbot includes for Windows Servers

Cannot get it to recognise my webbot include

         

albroun

12:02 pm on Feb 25, 2004 (gmt 0)

10+ Year Member



Hi

I am trying to use the webbot include method for a site I am working on, which is on a Windows server (not configured for the server side includes with which I am more familiar but does allow webbot includes).

Here is a sample of the code in the file which refers to the include (I have tried several ways of writing the code):

--------------------------------------------------
<html>
<head>
<title></title>
</head>
<body>
This is a test document to see if the webbot include system works.

<p>
<!--webbot bot="include" u-include="testincl.htm" tag="body" -->
</p>

<p>
<!--webbot bot="include" u-include="http://www.whatever.co.uk/testincl.htm" tag="body" -->
</p>

<p> <!--webbot bot="Include" u-include="testincl.htm.htm" tag="BODY" startspan --></p>

<p> <!--webbot bot="Include" u-include="http://www.whatever.co.uk/testincl.htm" tag="BODY" startspan --></p>

</body>
</html>

-----------------------------------------------------

and here is the included page (testincl.htm)

-------------------------------------------------------

<html>
<head>
<title></title>
</head>
<body>

this text is part of the include

</body>
</html>

---------------------------------------------------
Any help appreciated thanks

albroun

12:11 pm on Feb 25, 2004 (gmt 0)

10+ Year Member



Replying to my own post.

I have just seen the following on the web:

"For FrontPage include pages to work you must publish your site, not FTP it. In fact include pages will work to some extent if you FTP, in that they will appear on the final pages. However if you update an include page the change will only appear on a final page once it has been opened, saved and FTPed again. This pretty much takes away any advantage of using includes."

As I dont use Front Page it would seem that I cannot use includes properly.

bill

5:11 am on Feb 26, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



That's a FrontPage Include all right. You don't have to publish with FrontPage (although that will work), but you'd have to use FP and save the files with it at least.

albroun

11:03 am on Feb 26, 2004 (gmt 0)

10+ Year Member



thanks

any other (simple) include method for a Windows server, which does not involve FrontPage?

pageoneresults

11:07 am on Feb 26, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



ASP includes but you would not see the content of those includes rendered while working in FP at the local level.

<!--#include virtual="/file.asp"-->

Some like it that way. I'm a visual person and need to see my canvas. I've been using FP includes now since 1996 and they perform without fail.

pageoneresults

11:09 am on Feb 26, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Out of the four examples you provided of the
<webbot>
, the below would be the correct method using either relative or absolute URIs. I prefer absolute.

<!--webbot bot="include" u-include="http://www.example.co.uk/testincl.htm" tag="body" -->

pageoneresults

11:17 am on Feb 26, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



For FrontPage include pages to work you must publish your site, not FTP it.

I edit live via IE. Right click your IE toolbar and go to Customize. Select Edit from the available toolbar buttons at left. Click Add and then okay. You should now see an Edit button appear in your main toolbar.

Now you'll need to configure IE so that it uses FP as its default HTML editor. You do this by going to...

Tools > Internet Options > Programs > HTML Editor

...and then select FP from the dropdown. If it is not there, exit out of the options and open FP. It will ask you if you want FP to be the default editor, answer yes. Go back to the the Internet Options and you should now see FP in the list.

Once you've done this, browse to the site you want to edit. Click the Edit button and if your host has everything set up correctly, you should get a username/password prompt. Enter your information and then okay. Your site should open just as it does on your local system but, you'll be editing live and won't need to utilize the Publish or FTP feature.

Resave a page where you are using the include format shown above and see if that corrects the issue. If it doesn't, go to the Tools menu in FP. Select Recalculate Hyperlinks and see if that corrects the issue. One of those has to work. ;)