This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Dreamweaver > October 2005 > DW8 forces title and DTD ?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author DW8 forces title and DTD ?
Marek

2005-10-31, 6:15 am

Hi,

I have created default templates for new documents but DW8 forces document
titles and DTD headers (for HTML, PHP, ASP etc documents). I set up in
preferences 'none' in DTD section but DW8 adds then XML header. Titles are
replaced to 'untitled document' instead copy it from templates of new
documents. How to solve these problems?

Thanks for help,
Marek


Murray *TMM*

2005-10-31, 6:16 pm

> preferences 'none' in DTD section

Why on earth would you do that?

> but DW8 adds then XML header.


Not for me.

> Titles are replaced to 'untitled document' instead copy it from templates
> of new documents.


A properly made template will have an editable region around the title tag
so that it can be changed in each child page. Do you have that?

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================


"Marek" <marek1967@spam.interia.pl> wrote in message
news:dk4p83$2j6$1@forums.macromedia.com...
> Hi,
>
> I have created default templates for new documents but DW8 forces document
> titles and DTD headers (for HTML, PHP, ASP etc documents). I set up in
> preferences 'none' in DTD section but DW8 adds then XML header. Titles are
> replaced to 'untitled document' instead copy it from templates of new
> documents. How to solve these problems?
>
> Thanks for help,
> Marek
>



Marek

2005-10-31, 6:29 pm

> Why on earth would you do that?

Because some of the Java Script functionality stop working properly when you
define e.g.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
Please refer Microsoft's MSDN to find out how functionality of DHTML depends
on header above.

> Not for me.


Have you removed DTD header from e.g. Default.html file (C:\Program
Files\Macromedia\Dreamweaver 8\Configuration\DocumentTypes\NewDocuments
folder) ? If you do that, select NONE in preferences, section 'New
Document', option 'Default Document Type (DTD) and then please create new
HTML cocument. First line in code will contain XML document definition.

> A properly made template will have an editable region around the title tag
> so that it can be changed in each child page. Do you have that?


Saying 'template' I meant not DW template with editable regions etc. but
just code templates placed
C:\Program Files\Macromedia\Dreamweaver
8\Configuration\DocumentTypes\NewDocuments.

For example - template for new HTML document contains code:

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=">
<meta name="author" content="http://www.mssoft.com.pl">
<title>Bez tytułu</title>
</head>

<body>
</body>
</html>

When I create new document basing on this template, the HTML code looks like
this:

<?xml version="1.0" encoding="iso-8859-2"?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2" />
<meta name="author" content="http://www.mssoft.com.pl" />
<title>Untitled Document</title>
</head>

<body>
</body>
</html>

Notice that title is changed and XML header and />convention is forced too.
However when I set DTD preferences up to HTML 4.01 transitional and create
new HTML document selecting 'none' as DTD option in dialog box I got:

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2">
<meta name="author" content="http://www.mssoft.com.pl">
<title>Untitled Document</title>
</head>

<body>
</body>
</html>

Both options (preferences and dialog box) should be equivalent but they are
not. That's the reason why you didn't see my problem with header. Anyway
issue of forced title I can't still work around.


Michael Fesser

2005-10-31, 6:29 pm

..oO(Marek)

>
>Because some of the Java Script functionality stop working properly when you
>define e.g.
><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
>"http://www.w3.org/TR/html4/strict.dtd">


If it stops "working" with the above then it was not working properly at
all. Removing the document type declaration triggers quirks mode in some
browsers. Scripts which rely on that are buggy and unreliable.

>Please refer Microsoft's MSDN to find out how functionality of DHTML depends
>on header above.


"DHTML" that relies on broken code is broken itself.

Micha
Murray *TMM*

2005-10-31, 6:29 pm

> Have you removed DTD header from e.g. Default.html file (C:\Program
> Files\Macromedia\Dreamweaver 8\Configuration\DocumentTypes\NewDocuments
> folder) ? If you do that, select NONE in preferences, section 'New
> Document', option 'Default Document Type (DTD) and then please create new
> HTML cocument. First line in code will contain XML document definition.


I would never do that. As Micha said, by having to revert to bugwards mode
(i.e., removing the doctype) to make your dHTML work, you are demonstrating
that the dHTML itself is broken.

With regard to the title question, I simply cannot imagine doing what you
are describing. The title is one of the most important parts of the page,
and you would force every page to have the same title?

Well, anyhow, sorry - I can't help you with this....

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================


"Marek" <marek1967@spam.interia.pl> wrote in message
news:dk61ie$1e1$1@forums.macromedia.com...
>
> Because some of the Java Script functionality stop working properly when
> you define e.g.
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
> "http://www.w3.org/TR/html4/strict.dtd">
> Please refer Microsoft's MSDN to find out how functionality of DHTML
> depends on header above.
>
>
> Have you removed DTD header from e.g. Default.html file (C:\Program
> Files\Macromedia\Dreamweaver 8\Configuration\DocumentTypes\NewDocuments
> folder) ? If you do that, select NONE in preferences, section 'New
> Document', option 'Default Document Type (DTD) and then please create new
> HTML cocument. First line in code will contain XML document definition.
>
>
> Saying 'template' I meant not DW template with editable regions etc. but
> just code templates placed
> C:\Program Files\Macromedia\Dreamweaver
> 8\Configuration\DocumentTypes\NewDocuments.
>
> For example - template for new HTML document contains code:
>
> <html>
> <head>
> <meta http-equiv="Content-Type" content="text/html; charset=">
> <meta name="author" content="http://www.mssoft.com.pl">
> <title>Bez tytułu</title>
> </head>
>
> <body>
> </body>
> </html>
>
> When I create new document basing on this template, the HTML code looks
> like this:
>
> <?xml version="1.0" encoding="iso-8859-2"?>
> <html>
> <head>
> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2" />
> <meta name="author" content="http://www.mssoft.com.pl" />
> <title>Untitled Document</title>
> </head>
>
> <body>
> </body>
> </html>
>
> Notice that title is changed and XML header and />convention is forced
> too. However when I set DTD preferences up to HTML 4.01 transitional and
> create new HTML document selecting 'none' as DTD option in dialog box I
> got:
>
> <html>
> <head>
> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2">
> <meta name="author" content="http://www.mssoft.com.pl">
> <title>Untitled Document</title>
> </head>
>
> <body>
> </body>
> </html>
>
> Both options (preferences and dialog box) should be equivalent but they
> are not. That's the reason why you didn't see my problem with header.
> Anyway issue of forced title I can't still work around.
>



Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews