close ad
WARNING PC USERS: Do Not Install the DREAMWEAVER CC 2017 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

bug with DW CS4 template and HTML5?

Thread began 11/22/2011 1:56 pm by Massimo | Last modified 4/23/2013 4:47 am by Massimo | 1333 views | 4 replies |

Massimo

bug with DW CS4 template and HTML5?

I work with CS4 template and all is ok, but when try to use it with html5 the template delete all php code above html declaration in all file. Example:



so work well in my examplefile.php: when updating template the file are updated well.



<?php require_once('../language/myfile.php'); ?>

<?php require_once('../include/myfile2.php'); ?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/2011.dwt.php" codeOutsideHTMLIsLocked="false" -->



But if I change

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"> to



<!doctype html>



when updating examplefile.php the file is so:



<!-- InstanceBegin template="/Templates/2011.dwt.php" codeOutsideHTMLIsLocked="false" -->

<!doctype html>



and all above is deteled!



I think this is a bug, nobody know a solution?

Sign in to reply to this post

Dani Chankhour

Adobe released DW CS 5.5 which Supports HTML5, which explains why that could be an issue with DW CS4.

Sign in to reply to this post

Massimo

I know that CS5.5 are better but now don't would like buy it, however I have resolved leaving the old html declaration until I use the template and replacing it with the html5 declaration when finished to build the site.
I know it is not very comfortable but I have not found other solutions for cs4

Sign in to reply to this post

S.WebAssist447033

You don't need to revert to a pre-HTML5 DOCTYPE: you simply need to explicitly include an <html> tag (which is optional in HTML, and should be inferred if not included, but appears to be required by Dreamweaver when it's determining what is code outside of the <html> element).

So this works:

<!doctype html>
<html>

Your XHTML1.0 version worked because your XHTML boilerplate included an <html> tag.

Thank you for posting this, by the way. We were struggling with the same problem, and your mention of it working in XHTML1.0 was enough of a hint to help us to solve it.

Sign in to reply to this post

Massimo

Thanks!

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...