|
Posted by mikael b on November 22, 2008, 6:51 am
Please log in for more thread options
show/hide quoted text
> 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.
show/hide quoted text
> Please: I've heard "Don't use DreamWeaver!" too many times already, so
> there is no need to repeat it.
Why wouldn't one use Dreamweaver? That's not a reason to work AGAINST
wweb standards.
show/hide quoted text
> Wen index.php is loaded, one of the chunks will be included and client will
> see two, (repeat, 2) identical css link tags. When I test the page,
Obviously, us PHP includes instead, or server side includes, for code
fragments.
show/hide quoted text
> Question 4: Am I missing something completely obvious that would achieve
> the same result without all this trouble? Again, I'm self-taught and I
> could be completely oblivious to better ways to do this.
Include just the code you need in fragments, Why one would include
comeplete HTML files is totally beyond me. There is NO reason for this
in Dreamweaver, or anywhere.
show/hide quoted text
> 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 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?
show/hide quoted text
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. DW
is a powerful tool, but that power can be misused, mispent or used to
your advantage. The choice is yours.
|
|
Posted by henry on November 23, 2008, 1:12 pm
Please log in for more thread options
Hello:
Thanks for your response to my post:
in article 15049b6f-094b-4a3a-bbe4-4d2011503415@f3g2000yqf.googlegroups.com,
mikael b at micke.bystrom@gmail.com wrote on 11/22/08 3:51 AM:
show/hide quoted text
>
>>
>> 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.
>
>>
>> Please: I've heard "Don't use DreamWeaver!" too many times already, so
>> there is no need to repeat it.
> Why wouldn't one use Dreamweaver? That's not a reason to work AGAINST
> wweb standards.
I agree.
show/hide quoted text
>
>> Wen index.php is loaded, one of the chunks will be included and client will
>> see two, (repeat, 2) identical css link tags. When I test the page,
> Obviously, us PHP includes instead, or server side includes, for code
> fragments.
Sorry, my point wasn't clear. My site design _is_ based on using PHP
includes.
show/hide quoted text
>
>> Question 4: Am I missing something completely obvious that would achieve
>> the same result without all this trouble? Again, I'm self-taught and I
>> could be completely oblivious to better ways to do this.
> Include just the code you need in fragments, Why one would include
> 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.
show/hide quoted text
>
>> 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.
show/hide quoted text
>
> 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.
show/hide quoted text
>> 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
|
| Similar Threads | Posted | | Changing test with serverside includes | February 11, 2006, 11:45 am |
| multiple link styles without classes? | May 20, 2005, 3:21 pm |
| Can you break a single HTML file into multiple pages like PEGHELP for Pocket PC does? | July 27, 2004, 1:49 pm |
| 'Web Test Tools List' of 300 tools updated at Softwareqatest.com | May 24, 2006, 11:41 am |
| css file won't link to xhtml | April 20, 2005, 10:15 pm |
| Link inside the ZIP file ? | December 24, 2006, 4:07 am |
| resolution of images for inclusion to html | October 15, 2007, 5:39 am |
| Hyper link that opens the newest file in a dir? | March 25, 2005, 1:43 pm |
| Are personalized URLs a danger to my Search Engine inclusion? | October 2, 2005, 8:11 am |
| Forcing retrieval of a fresh copy of a file with a link | May 30, 2008, 8:47 am |
|
> 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.