Forum Moderators: open

Message Too Old, No Replies

Frontpage and Includes

Want to see includes during development

         

woop01

3:45 pm on Sep 22, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Is there a way to make Frontpage show the include files while editing it? For example, we use...

<!--#include file="inc/left.aspx"-->

...to include our left hand link bar on the page. However, it doesn't show up when in the design view of Frontpage which is a bit annoying. Is there a way arount this?

pageoneresults

4:04 pm on Sep 22, 2004 (gmt 0)

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



Yes, there is a way around it. You can use the FP include webbot in place of the asp include.

<!--webbot bot="include" u-include="http://www.example.com/nav/left.asp" tag="body" -->

But, FP includes work a little differently than asp includes. An FP included page is just like any other page of the site. It contains complete head and body information, unlike asp includes which only contain the content to be included.

NeedScripts

4:14 pm on Sep 22, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



It contains complete head and body information

But this head and body tags are not added in the main page where the content is suppose to be included. But only the content between <body> & </body> tags is included.

Like pageoneresults suggested, FP include is a way around it and actually works great.

pageoneresults

4:18 pm on Sep 22, 2004 (gmt 0)

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



Building FrontPage Includes [webmasterworld.com]

NeedScripts

4:23 pm on Sep 22, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Building FrontPage Includes

Thanks for the great link.. I must have missed that post. I just added it in my bookmark.. wow what a read.

Thanks again.

Vishal

abbeyvet

8:46 pm on Sep 27, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



There are drawbacks to using frontpage includes though unless you are publishing your web.

If you are FTPing it, the includes will not update properly. By which I mean, if you alter the content of an include page and upload it using FTP, the pages will show the old include until such time as the page itself is again uploaded.

Just something to be aware of.

bill

5:51 am on Sep 28, 2004 (gmt 0)

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



If you are FTPing it, the includes will not update properly.
Include Pages update sitewide whenever you save them. I'm not sure what you mean when you say they won't update properly.