navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

Microsoft MVP

 

Includes in EW

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> Expression Web Help >> Includes in EW
Page: [1]
 
swoosh

 

Posts: 1437
Joined: 5/18/2002
From: Beaver Falls, PA
Status: offline

 
Includes in EW - 5/15/2007 12:42:57   
Hey EVeryone,

I have a site that was created in FP and now converted over to EW. Everything went smooth and looks good online including pages with includes, HOWEVER, when I make any type of change in a page with includes the includes disappear!!! .........they still appear in EW design view but not on the server.....gone completely.......code still in there but nothing showing NADA...........am I missing something?

_____________________________

Swoooosh
Just Do It!

obialor

 

Posts: 72
Joined: 1/9/2007
Status: offline

 
RE: Includes in EW - 5/15/2007 16:59:25   
Frontpage Includes, Navbots, Shared borders are not supported in EW. Microsoft says that they are not W3C compliant. I do not understand this completely. If you want to use Includes, there are a number of free scripts on the web developed to work with EW.

Obi

(in reply to swoosh)
swoosh

 

Posts: 1437
Joined: 5/18/2002
From: Beaver Falls, PA
Status: offline

 
RE: Includes in EW - 5/15/2007 18:08:15   
downloaded the macro offered here on Outfront that puts the Include option on the Insert Menu........retried doing this with this method but still my Include pages does NOT show up on the server......they are fine in design view as they are inserted after using the File Include Page optiion.

Obi, are there any scripts using the include with EW that you would recommend?

_____________________________

Swoooosh
Just Do It!


(in reply to obialor)
obialor

 

Posts: 72
Joined: 1/9/2007
Status: offline

 
RE: Includes in EW - 5/15/2007 18:19:22   
I found the following script I saved sometime ago in my Code Snippet. I got it a while ago and have not used it for a longtime and do not remember how it works:

<!--webbot bot="Include" u-include="../_inc/insert-name.htm" tag="BODY" -->

You get to the Code Snippet via Tools/ Page Editor Options / Code Snippet.
A nice place to save scripts you plan to reuse.

Obi

(in reply to swoosh)
swoosh

 

Posts: 1437
Joined: 5/18/2002
From: Beaver Falls, PA
Status: offline

 
RE: Includes in EW - 5/15/2007 18:27:44   
Thanks for your reply obi, but if I'm not mistaken that is the exact code that is being put in by the Include Page Option:

<!--webbot bot="Include" U-Include="downtown/beaver/header_be.htm" TAG="BODY" -->


Here is a link test page that shows the code in source but zip on the page itself:

http://www.towncenter.info/georgetest.htm




_____________________________

Swoooosh
Just Do It!


(in reply to swoosh)
WantToLearn

 

Posts: 109
Joined: 10/19/2002
Status: offline

 
RE: Includes in EW - 5/15/2007 18:31:38   

quote:

ORIGINAL: swoosh

Thanks for your reply obi, but if I'm not mistaken that is the exact code that is being put in by the Include Page Option:

<!--webbot bot="Include" U-Include="downtown/beaver/header_be.htm" TAG="BODY" -->


Here is a link test page that shows the code in source but zip on the page itself:

http://www.towncenter.info/georgetest.htm





Yes, I created the include page macro and it's the exact same code.

(in reply to swoosh)
swoosh

 

Posts: 1437
Joined: 5/18/2002
From: Beaver Falls, PA
Status: offline

 
RE: Includes in EW - 5/15/2007 18:33:50   
Great Macro Want to Learn!!!!!!!

But any idea why my includes are not showing?

_____________________________

Swoooosh
Just Do It!


(in reply to WantToLearn)
WantToLearn

 

Posts: 109
Joined: 10/19/2002
Status: offline

 
RE: Includes in EW - 5/15/2007 19:04:48   
quote:

<!--webbot bot="Include" U-Include="downtown/beaver/header_be.htm" TAG="BODY" -->


I'm sure you've probably already checked this, but is the U-Include attribute url (downtown/beaver/header_be.htm) correct? Those relative urls can be tricky when buried two or more folders deep.

Also, I created a test page with an include on my local development server and I get the exact same problem you are having. Then I published the pages to a remote server and it works. I know my local server does NOT have FP server extensions installed and my remote host DOES have them installed. Could that be the problem? I still don't understand how these includes work but it seems like they do require FP server extensions installed on the server. Correct me if I'm wrong, anyone.

(in reply to swoosh)
swoosh

 

Posts: 1437
Joined: 5/18/2002
From: Beaver Falls, PA
Status: offline

 
RE: Includes in EW - 5/15/2007 19:08:07   
Yes WantToLearn the URL is correct, I also picked that file using the Include Page Component by navigating to it graphically.......

Hmmm, about the FP Extensions, I am assuming they are installed ONLY because the site was created in FP and hosted by the same company and everything was running properly including the Includes.

_____________________________

Swoooosh
Just Do It!


(in reply to WantToLearn)
swoosh

 

Posts: 1437
Joined: 5/18/2002
From: Beaver Falls, PA
Status: offline

 
RE: Includes in EW - 5/15/2007 19:24:21   
According to this EW developer team blog, includes do not require the Server Extensions, and also standard compliant:
http://blogs.msdn.com/xweb/

_____________________________

Swoooosh
Just Do It!


(in reply to swoosh)
WantToLearn

 

Posts: 109
Joined: 10/19/2002
Status: offline

 
RE: Includes in EW - 5/15/2007 20:37:18   
I'm stumped... Anyone else have any ideas?

(in reply to swoosh)
swoosh

 

Posts: 1437
Joined: 5/18/2002
From: Beaver Falls, PA
Status: offline

 
RE: Includes in EW - 5/15/2007 20:53:57   
Driving me nuts too WTL:). I do appreciate your input. Rick P had this happen to him also, and recalls it was an easy fix, but unfortunately he is trying to remember what steps he took to correct it.

http://www.frontpagewebmaster.com/m-351339/tm.htm

_____________________________

Swoooosh
Just Do It!


(in reply to swoosh)
obialor

 

Posts: 72
Joined: 1/9/2007
Status: offline

 
RE: Includes in EW - 5/15/2007 22:57:15   
You need to install the FP Extensions manually for every site. There is nothing like server-wide FPE installation. Try that.

Obi

(in reply to swoosh)
Reflect

 

Posts: 4769
From: USA
Status: offline

 
RE: Includes in EW - 5/16/2007 10:30:36   
But the extensions are not needed for includes. This goes back to FP 98 going from memory.

Not much of a help, just clarifying.

<edit>I took a peak at george and the include page. Your call is correct, page location is correct. I am not sure why it would make it not display but I noticed your source code on the include page is as follows:

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

<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252" />
<title>george</title>
</head>

<body>
george

</body>

</html>


Normally when I do includes I leave all that out as it is redundant. So I would try on the include:

<body>
<p>george</p>
</body>


or even:

<p>george</p>

</edit>

Take care,

Brian

_____________________________


(in reply to obialor)
swoosh

 

Posts: 1437
Joined: 5/18/2002
From: Beaver Falls, PA
Status: offline

 
RE: Includes in EW - 5/16/2007 13:18:08   
Yes that is correct, FP extensions are not needed.

I just don't understand this, I have done Insert>Include Page.

I have done opening page with FP include already there initially and just double clicking to redo the include

I have copy and pasted script code only to a page

AND NOTHING SHOWS UP! although it shows in design mode.............Is this happening to anyone else?

P.S. just now ready the post from Brian so trying that

UPDATE: THAT DOESN'T WORK EITHER.... http://www.towncenter.info/nate.htm

A PAGE THAT SHOULD HAVE GEORGE.HTM INCLUDED ON IT AND THE GEORGE PAGE IS STRIPPED TO ONLY HAVE THE FOLLOWING:

<BODY>
<p> gEORGE </p>
</BODY>

< Message edited by swoosh -- 5/16/2007 13:28:55 >


_____________________________

Swoooosh
Just Do It!


(in reply to swoosh)
Reflect

 

Posts: 4769
From: USA
Status: offline

 
RE: Includes in EW - 5/16/2007 13:47:19   
Does EW have the option to "recalculate hyperlinks"?

Take care,

Brian

_____________________________


(in reply to swoosh)
swoosh

 

Posts: 1437
Joined: 5/18/2002
From: Beaver Falls, PA
Status: offline

 
RE: Includes in EW - 5/16/2007 13:58:43   
Yes it does Brian.......recalculated them but no dice. Thanks for the suggestion though.

At this point I'll stand on my head and do the include if somebody told me it would work.

_____________________________

Swoooosh
Just Do It!


(in reply to swoosh)
swoosh

 

Posts: 1437
Joined: 5/18/2002
From: Beaver Falls, PA
Status: offline

 
RE: Includes in EW working - 5/16/2007 14:26:30   
It is now working.........I'm assuming Brian's suggestion on recalculating the hyperlinks did it....maybe it wasn't done when I tried it before but all inlcudes are showing now......BUT, now on the .aspx pages where includes were on are showing error messages instead.

CAN INCLUDES BE ON .ASPX PAGES?

thank you so much Brian for your suggestion that worked!!!!!!

_____________________________

Swoooosh
Just Do It!


(in reply to swoosh)
avi_m

 

Posts: 11
Joined: 5/13/2007
Status: offline

 
RE: Includes in EW (including CSS) - 5/17/2007 3:44:46   
While on the subject of includes...although not exactly the same thing,

anybody know if there a way of doing an include of a block of CSS code.

I have this in the header area of a DWT:

#masthead a { /* Keep button for current page "pressed"*/
color: #FFDDEB;
text-decoration: none;
/* 3-D - Non-pushed ... */
background-color: #FF468B;
position: relative;
top: 1px;
left: 1px;
border-color: #000 #aaa #aaa #000;
}

Don't ask why - it just has to be there.

Now how can I take just that block of CSS and make it external and just have a macro type thing that would represent it.

In the C language I could somewhere define a macro something like this:

define Pressed \
color: #FFDDEB;\
text-decoration: none;\
/* 3-D - Non-pushed ... */\
background-color: #FF468B;\
position: relative;\
top: 1px;\
left: 1px;\
border-color: #000 #aaa #aaa #000;

tia

avi




(in reply to swoosh)
Reflect

 

Posts: 4769
From: USA
Status: offline

 
RE: Includes in EW (including CSS) - 5/17/2007 7:45:01   
Swoosh,

You are most welcome. Ran into that with FP 98 once. It took a while for this old soaked brain to pull it out.

quote:

CAN INCLUDES BE ON .ASPX PAGES?


Seems like they can. Reference:

http://samples.gotdotnet.com/quickstart/aspplus/doc/webformssyntaxref.aspx

Scroll down to the bottom example for the reference.

AVI,

You REALLY should start a new thread. It help keeps fixes search able, that and it will get more responses.

quote:

anybody know if there a way of doing an include of a block of CSS code.


External CSS style sheets would be my first response.

Take care,

Brian


_____________________________


(in reply to avi_m)
avi_m

 

Posts: 11
Joined: 5/13/2007
Status: offline

 
RE: Includes in EW (including CSS) - 5/17/2007 8:16:23   


Thanks,

avi


quote:

I have this in the header area of a DWT:

#masthead a { /* Keep button for current page "pressed"*/
color: #FFDDEB;
text-decoration: none;
/* 3-D - Non-pushed ... */
background-color: #FF468B;
position: relative;
top: 1px;
left: 1px;
border-color: #000 #aaa #aaa #000;
}

Don't ask why - it just has to be there.

Now how can I take just that block of CSS and make it external and just have a macro type thing that would represent it.

In the C language I could somewhere define a macro something like this:

define Pressed \
color: #FFDDEB;\
text-decoration: none;\
/* 3-D - Non-pushed ... */\
background-color: #FF468B;\
position: relative;\
top: 1px;\
left: 1px;\
border-color: #000 #aaa #aaa #000;

tia

avi

(in reply to Reflect)
jaybee

 

Posts: 14157
Joined: 10/7/2003
From: Berkshire, UK
Status: offline

 
RE: Includes in EW (including CSS) - 5/17/2007 8:18:41   
quote:

CSS
Yes, put it in it's own stylesheet called masthead.css or whatever the put a link to in it your header.

<link rel="stylesheet" href="masthead.css" type="text/css" media="screen">

_____________________________

If it ain't broke..... fix it until it is.
:)

:)
GAWDS
Now where did I put that Doctype?

(in reply to Reflect)
avi_m

 

Posts: 11
Joined: 5/13/2007
Status: offline

 
RE: Includes in EW (including CSS) - 5/17/2007 10:49:02   
I did as Reflect told me to and started a new thread called:


" How to include block of CSS code to insert inside { ... } of id#{ }? "

Thanks,

- avi


(in reply to jaybee)
Page:   [1]

All Forums >> Web Development >> Expression Web Help >> Includes in EW
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts