PDA

View Full Version : #INCLUDE VIRTUAL not working


NexusEnt
7-2-02, 09:27 PM
I have this code in my website:

#INCLUDE VIRTUAL="/common_include/title.html

but it does not work now that I have transferred the site over.

Any thoughts?

alphadesk
7-2-02, 09:42 PM
Is the page ext .shtml or done with the .htaccess trick? You will have to do one or the other.

AddType text/html .shtml
AddHandler server-parsed .shtml
Options Indexes FollowSymLinks Includes

This is the command I use an a page and it works. I use .shtml ext

<!--#include virtual="/main/body.html"-->

Try it without the caps.

NexusEnt
7-2-02, 09:44 PM
I will check it and see. Thanks.

The whole thing was done using .ASP but apparently its not supported here, so everything was changed over to .html files.

lwilkinson
7-9-02, 12:30 PM
I am having the same problem with the INCLUDE statement. On an old site I was able to use the FrontPage2002 INCLUDE PAGE. The church secretary could FTP the weekly calendar and when the site was viewed, the current FTPed file appeared within the 'calendar.htm' page. That is not working now and I don't understand the previous instructions. Do they go in the <head> or in the <body> and what about caps?
Thank you,
--Lee

NexusEnt
7-9-02, 12:33 PM
No I was unable to get mine to work. I manually loaded the INCLUDED stuff into the home page, which works, but I can't get the rest of the pages to work.

So we are working on a re-write of the website unfortunately.