Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Design time includes behavior

0 views
Skip to first unread message

Tom Miller

unread,
Nov 19, 2009, 11:35:38 AM11/19/09
to
I have this "design time include" that I got from Tina. Clearly I don't
understand something.

<!--webbot bot="Include" u-include="footer.htm" tag="BODY" -->

This correctly displays in the design panel of EWv2. But it doesnot not
display if I try to preveiw in my browser. Nor does it display if I simply
copy my files upto the website.

I have a sneaking suspicion that for this to work, you have to "publish" via
EW who then processes each include into the actual page before sending it up
to the website. Is this right?

Tom
--
Who me? What signature?

I manage design and acquistion of data-driven websites at:
http://BlueCollar.ChatNFiles.com
Linkedin Profile: http://www.linkedin.com/in/tlgalenson
www.ChatNFiles.com has telnet chatting and more than 500,000 downloads


Tom Miller

unread,
Nov 19, 2009, 11:55:12 AM11/19/09
to
>I have this "design time include" that I got from Tina. Clearly I don't
>understand something.
>
> <!--webbot bot="Include" u-include="footer.htm" tag="BODY" -->
>
> This correctly displays in the design panel of EWv2. But it doesnot not
> display if I try to preveiw in my browser. Nor does it display if I
> simply copy my files upto the website.

I have now tried and as far as I can tell succeeded in publishing from
inside of EWv2 and the footer still doesn't display. Ok, what am I doing
wrong?

Does the foot page need to be a full-blown stand alone html page?
(Anotherwords with a DOCtype, <hml><body> etc) Or does it need to be named
as a .txt file? Or what?

Thanks,

senn

unread,
Nov 19, 2009, 12:32:30 PM11/19/09
to

"Tom Miller" <tlgal...@sbcglobal.net> skrev i meddelelsen
news:NLeNm.20881$gi1....@newsfe19.iad...

> >I have this "design time include" that I got from Tina. Clearly I don't
> >understand something.
>>
>> <!--webbot bot="Include" u-include="footer.htm" tag="BODY" -->
>>
>> This correctly displays in the design panel of EWv2. But it doesnot not
>> display if I try to preveiw in my browser. Nor does it display if I
>> simply copy my files upto the website.
>
> I have now tried and as far as I can tell succeeded in publishing from
> inside of EWv2 and the footer still doesn't display. Ok, what am I doing
> wrong?
>
> Does the foot page need to be a full-blown stand alone html page?

Yes, even having a doctype. Think you should move off this tag="BODY"
I never seen this kind of webbot having a tag.
You should also wrap it in a div having a style in it, as to have a better
control of where to place it on the page. For example as:
<div id="webbotdiv"><!--webbot bot="Include"
U-Include="includemenu/horizonmenu.html" --></div>

Ronx

unread,
Nov 19, 2009, 12:35:59 PM11/19/09
to
The include file has to be a complete web page, including

<html>
<head>
<title>...</title>
</head>
<body>
included content
</body>
</html>

Only the content between (not including) <body> and </body> is included into
the page - the process looks for the <body> and </body> tags to define the
content that is included into pages. The include file must be named with
htm or html extension. The page(s) it is included into can have any
extension (htm, asp, aspx, etc).

The include process is completed when the parent page is saved - so the
complete page is on your PC and can be viewed in a browser immediately
(assuming no server side scripting), and can be uploaded by FTP, HTML
publishing or copying with Windows Explorer (that requires the server is on
a LAN).

--
Ron Symonds
Microsoft MVP (Expression Web)
http://www.rxs-enterprises.org/fp

Reply only to group - emails will be deleted unread.

"Tom Miller" <tlgal...@sbcglobal.net> wrote in message
news:NLeNm.20881$gi1....@newsfe19.iad...

Cheryl D Wise

unread,
Nov 19, 2009, 3:15:02 PM11/19/09
to
Design time includes only add what is between the <body> elements in the
page included and unlike a server side include must have both <html> &
<body> tags. It doesn't need a doctype or <head> section.

--
Cheryl D Wise
http://by-expression.com

"Tom Miller" <tlgal...@sbcglobal.net> wrote in message
news:NLeNm.20881$gi1....@newsfe19.iad...

Cheryl D Wise

unread,
Nov 19, 2009, 3:43:26 PM11/19/09
to
Here's a test page to show that you only need <html> & <body>
http://wizerways.net/test/base.html

--
Cheryl D Wise
http://by-expression.com

"Cheryl D Wise" <wise...@newsgroup.nospam> wrote in message
news:u3df5UVa...@TK2MSFTNGP04.phx.gbl...

KathyW

unread,
Nov 19, 2009, 3:50:02 PM11/19/09
to
And, to elaborate a bit on what you've already been told, if the include page
has styling, it must be in an external CSS file that the including page also
references, since only the body, not any style section inside the header, is
included.

"Tom Miller" wrote:

> .
>

KathyW

unread,
Nov 19, 2009, 3:57:01 PM11/19/09
to

"senn" wrote:

...

> Think you should move off this tag="BODY"
> I never seen this kind of webbot having a tag.

The tag="BODY" belongs there.

It is what is displayed in the including page in Code View, and is in the
actual source that gets published for the page.

Example: In Code View:

<!--webbot bot="Include" U-Include="cal_menu.htm" TAG="BODY" -->

In View Source of the final page in a browser, with the include in it:

<!--webbot bot="Include" U-Include="cal_menu.htm" TAG="BODY" startspan -->
[here will be the actual HTML from the body of the include]
<!--webbot bot="Include" i-checksum="3785" endspan -->

KathyW

unread,
Nov 19, 2009, 5:08:01 PM11/19/09
to
Of course, since the easiest way to create the page is EW File -> New Page,
you'll end up with the rest anyway, with no harm done for having it.

"Cheryl D Wise" wrote:

> .
>

senn

unread,
Nov 20, 2009, 12:36:54 AM11/20/09
to

"KathyW" <Kat...@discussions.microsoft.com> skrev i meddelelsen
news:50C004F4-726B-4832...@microsoft.com...

Thank you for this information, Kathy.
/senn

0 new messages