Re: multiple instances of a CSS link due to server-side file inclusion and tools requirements
- From: henry <henry.zzzabcde@xxxxxxxxx>
- Date: Sun, 23 Nov 2008 10:12:09 -0800
Hello:
Thanks for your response to my post:
in article 15049b6f-094b-4a3a-bbe4-4d2011503415@xxxxxxxxxxxxxxxxxxxxxxxxxxx,
mikael b at micke.bystrom@xxxxxxxxx wrote on 11/22/08 3:51 AM:
On Nov 18, 6:03 am, henry <henry.zzzab...@xxxxxxxxx> wrote:
Question 1: What's the best way of describing this design, in which the
index page determines the basic site appearance, and specific "inner"
content is selected by a computation at load time? (Sorry, I'm self-taught
and working alone, and I don't always get the terminology right.)
Note that linkage to the site-wide CSS file occurs in all files. Why? At
least in the authoring environment I'm using, Dreamweaver CS3, that's the
only way to make the site-wide styles available to all pages.
Why wouldn't one use Dreamweaver? That's not a reason to work AGAINST
Please: I've heard "Don't use DreamWeaver!" too many times already, so
there is no need to repeat it.
wweb standards.
I agree.
Wen index.php is loaded, one of the chunks will be included and client willObviously, us PHP includes instead, or server side includes, for code
see two, (repeat, 2) identical css link tags. When I test the page,
fragments.
Sorry, my point wasn't clear. My site design _is_ based on using PHP
includes.
Question 4: Am I missing something completely obvious that would achieveInclude just the code you need in fragments, Why one would include
the same result without all this trouble? Again, I'm self-taught and I
could be completely oblivious to better ways to do this.
comeplete HTML files is totally beyond me. There is NO reason for this
in Dreamweaver, or anywhere.
Ummm, I have a very weak excuse for attempting this.
But first, a review: I got started down that road because I was renovating
an existing site, in which all the content chunks _were_ complete HTML
files. I naively hoped that I could rebuild the site to use a PHP include
scheme while making minimal changes to the actual content.
That's the history, now here's the weak excuse: That attempt appeared to
work quite well. In admittedly limited testing, I never saw any bad effect
from multiple CSS links, or nested outer tags, either. The only trouble I
actually saw that was attributable to this scheme was that the pages failed
W3C validation.
Question 5: Is there a better place to post this question?Well, a dreamweaver forum obviously. But I can tell you right now,
that using DW is no excuse to write standard-erroneus code. Work with
the standards in mind and use DW as the tool it is. Use your brain
instead of leaving everything to DW.
You could also look into the use of DW templates, but I think PHP
includes is also worth investigating.
I have looked into DW templates. I didn't find them very friendly. As I've
said, I _am_ using a PHP includes.
I can recommend you get the book "Mastering.CSS with Dreamweaver CS3"
by Stephanie Sullivan and Greg Rewis <http://www.amazon.com/Mastering-
Dreamweaver-Voices-That-Matter/dp/0321508971/ref=sr_1_1?
ie=UTF8&s=books&qid=1227354193&sr=1-1>, for one source of solid ideas
on how to work WITH web standard oriented designs in Dreamweaver.
Thanks for the recommendation, but I have learned I learn best by doing,
even if that means making large, embarrassing mistakes.
Besides that, most books I've tired quickly lost in the details of such
technologies, of which there are plenty. They generally don't help with the
big picture. When I first thought up the scheme, I really did look around
the Web quite a bit for guidance. I found a lot of pre-built templates,
free and for sale, but nothing that described the pros and cons of such a
design. Nor did I find anything specific about multiple instances of a CSS
link that would logically occur. Perhaps if I had tried one more search
term variation I would have found what I was looking for. Typical.
DW
is a powerful tool, but that power can be misused, mispent or used to
your advantage. The choice is yours.
I didn't set out to be a rule-breaker! I don't believe DW led me in one
direction or another in this respect.
Thanks,
Henry
.
- Follow-Ups:
- Re: multiple instances of a CSS link due to server-side file inclusion and tools requirements
- From: Jonathan N. Little
- Re: multiple instances of a CSS link due to server-side file inclusion and tools requirements
- References:
- Prev by Date: Re: anti-spam measurements
- Next by Date: Re: multiple instances of a CSS link due to server-side file inclusion and tools requirements
- Previous by thread: Re: multiple instances of a CSS link due to server-side file inclusion and tools requirements
- Next by thread: Re: multiple instances of a CSS link due to server-side file inclusion and tools requirements
- Index(es):
Relevant Pages
|
Loading