473,388 Members | 1,427 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,388 software developers and data experts.

assembling dynamic pages, nested duplication of header-trailermaterial

Folks:

Using Dreamweaver CS3...

Consider a home page, "index.php" which conditionally REQUIREs one of 'N'
HTML files of pure content. All site styles are specified in a master CSS
file, "siteformatting.css"

The home page, "index.php" must link to the master CSS file, so that HTML
elements in this file can conform to site-wide standards, right? (Or
"index.php" should be modified to contain no HTML? See further below.)
Each of the 'N' content files must contain a link to the master CSS file;
this enables Dreamweaver to offer the site-wide styles when I edit them.

This scheme works consistently during authoring in Dreamweaver.

But: when a page is served up from my test host, the browser will see nested
duplication of header --and trailer-- material, including two identical
header links to "siteformatting.css". I've seen dire warnings about
nesting a valid HTML file within the body of another valid HTML file.

Yep, HTML Validator (latest: 0.8.5.2) extension to FireFox reports the
nested duplications with multiple warnings. The obvious way to deal with
this is to ignore the warnings. They aren't reported as errors, and thus far
in limited testing, I haven't seen any ill effects. But the "dire warnings"
seem to indicate this nested duplication could choke some browsers.

Or, I could to push all the HTML out of "index.php" into stand-alone HTML
files. But I'm reluctant about breaking up the home page into multiple
files. That seems very inconvenient for managing the site appearance. My
actual design is much more complex than the schematic description I'm giving
here. I think it would require a dozen or so HTML files, which seems very
inconvenient.

The only other option I can imagine is finding a way to persuade DW when it
opens a file for editing to pretend it sees HTML header and trailer material
--including the CSS link-- which aren't actually saved with the individual
files. Seems unlikely.

So, what's the "right" way to handle this?

TIA,

Henry

Nov 12 '08 #1
4 1867
Do you have a link to this? I'd like to see specifically what's going
on.

Thanks,
Thomas

henry wrote:
Folks:

Using Dreamweaver CS3...

Consider a home page, "index.php" which conditionally REQUIREs one of 'N'
HTML files of pure content. All site styles are specified in a master CSS
file, "siteformatting.css"

The home page, "index.php" must link to the master CSS file, so that HTML
elements in this file can conform to site-wide standards, right? (Or
"index.php" should be modified to contain no HTML? See further below.)
Each of the 'N' content files must contain a link to the master CSS file;
this enables Dreamweaver to offer the site-wide styles when I edit them.

This scheme works consistently during authoring in Dreamweaver.

But: when a page is served up from my test host, the browser will see nested
duplication of header --and trailer-- material, including two identical
header links to "siteformatting.css". I've seen dire warnings about
nesting a valid HTML file within the body of another valid HTML file.

Yep, HTML Validator (latest: 0.8.5.2) extension to FireFox reports the
nested duplications with multiple warnings. The obvious way to deal with
this is to ignore the warnings. They aren't reported as errors, and thus far
in limited testing, I haven't seen any ill effects. But the "dire warnings"
seem to indicate this nested duplication could choke some browsers.

Or, I could to push all the HTML out of "index.php" into stand-alone HTML
files. But I'm reluctant about breaking up the home page into multiple
files. That seems very inconvenient for managing the site appearance. My
actual design is much more complex than the schematic description I'm giving
here. I think it would require a dozen or so HTML files, which seems very
inconvenient.

The only other option I can imagine is finding a way to persuade DW when it
opens a file for editing to pretend it sees HTML header and trailer material
--including the CSS link-- which aren't actually saved with the individual
files. Seems unlikely.

So, what's the "right" way to handle this?

TIA,

Henry
Nov 13 '08 #2
On Nov 12, 11:12*pm, 703designs <thomasmal...@gmail.comwrote:
Do you have a link to this? I'd like to see specifically what's going
on.

Thanks,
Thomas

henry wrote:
Folks:
Using Dreamweaver CS3...
Consider a home page, "index.php" which conditionally REQUIREs one of 'N'
HTML files of pure content. All site styles are specified in a master CSS
file, "siteformatting.css"
The home page, "index.php" must link to the master CSS file, so that HTML
elements in this file can conform to site-wide standards, right? (Or
"index.php" should be modified to contain no HTML? *See further below..)
Each of the 'N' content files must contain a link to the master CSS file;
this enables Dreamweaver to offer the site-wide styles when I edit them..
This scheme works consistently during authoring in Dreamweaver.
But: when a page is served up from my test host, the browser will see nested
duplication of header --and trailer-- material, including two identical
header links to "siteformatting.css". * *I've seen dire warnings about
nesting a valid HTML file within the body of another valid HTML file.
Yep, HTML Validator (latest: 0.8.5.2) extension to FireFox reports the
nested duplications with multiple warnings. The obvious way to deal with
this is to ignore the warnings. They aren't reported as errors, and thus far
in limited testing, I haven't seen any ill effects. *But the "dire warnings"
seem to indicate this nested duplication could choke some browsers.
Or, I could to push all the HTML out of "index.php" into stand-alone HTML
files. But I'm reluctant about breaking up the home page into multiple
files. That seems very inconvenient for managing the site appearance. My
actual design is much more complex than the schematic description I'm giving
here. I think it would require a dozen or so HTML files, which seems very
inconvenient.
The only other option I can imagine is finding a way to persuade DW when it
opens a file for editing to pretend it sees HTML header and trailer material
--including the CSS link-- which aren't actually saved with the individual
files. * Seems unlikely.
So, what's the "right" way to handle this?
TIA,
Henry
Never mind, I see what you're saying. The truth is, this is a problem
with Dreamweaver. What you need to do is get out of Design mode and
not let your application design be determined by your editor. Really,
there's not much that you get out of Design mode that you can't get by
just refreshing a browser window. It's not even very reliable, based
on my experience.

Thomas
Nov 13 '08 #3
Thomas:

Thanks for your response to my post:

<snip>
>
<snipI see what you're saying. The truth is, this is a problem
with Dreamweaver. What you need to do is get out of Design mode and
not let your application design be determined by your editor. Really,
there's not much that you get out of Design mode that you can't get by
just refreshing a browser window. It's not even very reliable, based
on my experience.

I think this kind of architecture must have been around for a while, it
isn't uncommon, and DW designers might have figured out a way to deal with
it. Maybe there is, I just haven't found the right DW magic!

Now that I have had time to think of my proposed solution, to unwind the
index page so all HTML is in included files, I think it probably won't work,
because I think you can't just put code like this alone in index.php:

<?php

if (condition1)
{
require("content1.html")
}
elseif (condition2)
{
require("content2.html")
}

...
else
{
require("contentn.html")
}

?>

Right? The file must contain some header and trailer material,yes? The only
ones I know about are <html<head... With </head</htmlfollowing, and
that's enough to create the problem -- as long as DW can't be persuaded to
use CSS that's not referenced in the current page.

In other words, I repeat, there doesn't seem to be any way of avoiding
nested headers.
There's also the possibility that I'm missing something incredibly obvious
about designing a dynamic site that sidesteps this issue.
That's the trouble with being self-taught, and working alone...

Thanks,

Henry

(remove the zzz)

>>
henry wrote:
>>Folks:
>>Using Dreamweaver CS3...
>>Consider a home page, "index.php" which conditionally REQUIREs one of 'N'
HTML files of pure content. All site styles are specified in a master CSS
file, "siteformatting.css"
>>The home page, "index.php" must link to the master CSS file, so that HTML
elements in this file can conform to site-wide standards, right? (Or
"index.php" should be modified to contain no HTML? *See further below.)
>>Each of the 'N' content files must contain a link to the master CSS file;
this enables Dreamweaver to offer the site-wide styles when I edit them.
>>
>>This scheme works consistently during authoring in Dreamweaver.
>>But: when a page is served up from my test host, the browser will see nested
duplication of header --and trailer-- material, including two identical
header links to "siteformatting.css". * *I've seen dire warnings about
nesting a valid HTML file within the body of another valid HTML file.
>>Yep, HTML Validator (latest: 0.8.5.2) extension to FireFox reports the
nested duplications with multiple warnings. The obvious way to deal with
this is to ignore the warnings. They aren't reported as errors, and thus far
in limited testing, I haven't seen any ill effects. *But the "dire warnings"
seem to indicate this nested duplication could choke some browsers.
>>Or, I could to push all the HTML out of "index.php" into stand-alone HTML
files. But I'm reluctant about breaking up the home page into multiple
files. That seems very inconvenient for managing the site appearance. My
actual design is much more complex than the schematic description I'm giving
here. I think it would require a dozen or so HTML files, which seems very
inconvenient.
>>The only other option I can imagine is finding a way to persuade DW when it
opens a file for editing to pretend it sees HTML header and trailer material
--including the CSS link-- which aren't actually saved with the individual
files. * Seems unlikely.
>>So, what's the "right" way to handle this?
>>TIA,
>>Henry

Nov 14 '08 #4
I always thought that Dreamweaver was smart enough to handle includes
and what not. In your site settings, do you have DW seeing your local
server? I just set up a site here and it seems weak with
includes...although DW sees my local server (URL tests fine) a simple
nav.php include does not appear in Design mode.

My advice is to just code the HTML by hand (I can't speak for DW's
effectiveness as an editor, but it seems to fall short here), which
I've been doing for ages now. You get better results when you do so.

Thomas

On Nov 14, 12:28*am, henry <henry.zzzab...@gmail.comwrote:
Thomas:

Thanks for your response to my post:

<snip>
<snipI see what you're saying. The truth is, this is a problem
with Dreamweaver. What you need to do is get out of Design mode and
not let your application design be determined by your editor. Really,
there's not much that you get out of Design mode that you can't get by
just refreshing a browser window. It's not even very reliable, based
on my experience.

I *think this kind of architecture must have been around for a while, it
isn't uncommon, and DW designers might have figured out a way to deal with
it. *Maybe there is, I just haven't found the right DW magic!

Now that I have had time to think of my proposed solution, to unwind the
index page so all HTML is in included files, I think it probably won't work,
because I think you can't just put code like this alone in index.php:

* <?php

* if (condition1)
* {
* * require("content1.html")
* }
* * elseif (condition2)
* {
* * require("content2.html")
* }

* *...
* else
* {
* * *require("contentn.html")
* }

* ?>

Right? The file must contain some header and trailer material,yes? *Theonly
ones I know about are <html<head... With *</head</htmlfollowing, and
that's enough to create the problem -- as long as DW can't be persuaded to
use CSS that's not referenced in the current page.

In other words, I repeat, there doesn't seem to be any way of avoiding
nested headers.

There's also the possibility that I'm missing something incredibly obvious
about designing a dynamic site that sidesteps this issue.

That's the trouble with being self-taught, and working alone...

Thanks,

Henry

(remove the zzz)
henry wrote:
Folks:
>Using Dreamweaver CS3...
>Consider a home page, "index.php" which conditionally REQUIREs one of'N'
HTML files of pure content. All site styles are specified in a masterCSS
file, "siteformatting.css"
>The home page, "index.php" must link to the master CSS file, so that HTML
elements in this file can conform to site-wide standards, right? (Or
"index.php" should be modified to contain no HTML? *See further below.)
>Each of the 'N' content files must contain a link to the master CSS file;
this enables Dreamweaver to offer the site-wide styles when I edit them.
>This scheme works consistently during authoring in Dreamweaver.
>But: when a page is served up from my test host, the browser will seenested
duplication of header --and trailer-- material, including two identical
header links to "siteformatting.css". * *I've seen dire warnings about
nesting a valid HTML file within the body of another valid HTML file.
>Yep, HTML Validator (latest: 0.8.5.2) extension to FireFox reports the
nested duplications with multiple warnings. The obvious way to deal with
this is to ignore the warnings. They aren't reported as errors, and thus far
in limited testing, I haven't seen any ill effects. *But the "dire warnings"
seem to indicate this nested duplication could choke some browsers.
>Or, I could to push all the HTML out of "index.php" into stand-alone HTML
files. But I'm reluctant about breaking up the home page into multiple
files. That seems very inconvenient for managing the site appearance.My
actual design is much more complex than the schematic description I'mgiving
here. I think it would require a dozen or so HTML files, which seems very
inconvenient.
>The only other option I can imagine is finding a way to persuade DW when it
opens a file for editing to pretend it sees HTML header and trailer material
--including the CSS link-- which aren't actually saved with the individual
files. * Seems unlikely.
>So, what's the "right" way to handle this?
>TIA,
>Henry
Nov 14 '08 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: boclair | last post by:
In a discussion between AJ Flavel and Spartanicus, The later said. "Layouts that work well on the desktop and on small screen devices are single column layouts. Layouts that use more than one...
1
by: Steve Gadlin | last post by:
Hi there! First off, let me apologize for the basic question... I'm very new to .NET programming. I'm building a web site using VB.NET, and am trying to include several custom user controls. ...
1
by: Nathan Bloomfield | last post by:
Does anyone know if there is any documentation which relates to Access2k + ? or can anyone help adjust the code? I am having trouble converting the DAO references. TITLE :INF: How to...
7
by: xkeops | last post by:
Thinking of creating a website, most of the pages will have a general toolbar menu, a content and a footer. The content will be the only one who's gonna change but the rest (header,footer) will...
10
by: jflash | last post by:
Hello all, I feel dumb having to ask this question in the first place, but I just can not figure it out. I am wanting to set my site up using dynamic urls (I'm assuming that's what they're...
3
by: Andreas Wöckl | last post by:
Hi Group! I have a web form that is created dynamically - so I create Textboxes, RadioButtonLists, CheckBoxLists and so on - I have found some articles that there may be some problems with...
9
by: pbd22 | last post by:
Hi. This is just a disaster management question. I am using XMLHTTP for the dynamic loading of content in a very crucial area of my web site. Same as an IFrame, but using XMLHTTP and a DIV. I...
21
by: karen987 | last post by:
I have a news website, with asp pages. It has publishing software which allows you to add articles in a database, and then calls them up from links etc. I have added dynamic meta tags in 2 parts. The...
4
by: daveh551 | last post by:
I've seen reference to Nested Master Pages in some of the documentation, but I haven't been successful in creating one in VS 2005 (Framework 2.0). I just did a search on it, and "How To:...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.