Results 1 to 6 of 6
  1. #1
    Member
    Join Date
    February 13th, 2005
    Posts
    69
    Adding Doctype in InstrumentPro template
    I just modified xhtml-css template to be used with instrumentpro script and other dyse scripts. But the generated page missing the first line in the template.

    The missing line is:

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

    The page look OK in Firefox and Opera, but look terrible in IE7.

    My question is, is it possible to use the doctype declaration in the first template line?

    Thanks.

  2. #2
    ABW Ambassador cusimano's Avatar
    Join Date
    January 18th, 2005
    Location
    Toronto, Canada
    Posts
    1,369
    In the directory where make.pl is located, create a configuration text file named make-ini.txt and put the following line in it:

    write.html.pack.doctype no

    Then run make.pl again. Note: The configuration file takes affect only after you run make.pl.

    Any DOCTYPE statement in the templates will then be output.

    See: http://www.c3scripts.com/dyse/docs.html#configuration

    Yours truly,
    Cusimano.Com Corporation
    per: David Cusimano

  3. #3
    Member
    Join Date
    February 13th, 2005
    Posts
    69
    Thanks, it work great now in IE7

  4. #4
    Full Member
    Join Date
    December 20th, 2005
    Posts
    413
    Another example of the very nice support that David provides!
    [URL=http://themoneyforums.com]The Money Forums[/URL]

  5. #5
    Member
    Join Date
    January 18th, 2005
    Location
    Australia
    Posts
    118
    Please enable DOCTYPE by default in all scripts. Thanks!
    [URL=http://www.netmagellan.com/]Net Magellan blog[/URL]

  6. #6
    ABW Ambassador cusimano's Avatar
    Join Date
    January 18th, 2005
    Location
    Toronto, Canada
    Posts
    1,369
    In the past, webmasters were complaining that their pages did not render properly with a DOCTYPE so the scripts now remove it. Most of the scripts have a configuration variable to keep the DOCTYPE. In AE, set packhtml.doctype to no. In DySE, set write.html.pack.doctype to no. For other scripts, search in the configuration file for "doctype" and set the variable to no; and if there's no variable, set pack.doctype and write.html.pack.doctype to no (faster than having to determine which of these two variable name variations a particular script uses).

    Unless other webmasters have an objection, future versions of scripts will default the pack doctype variable to no (so DOCTYPE is not removed) and the supplied templates will come with DOCTYPE as:

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

    You can edit the supplied templates with your HTML editor and modify the DOCTYPE. And you're free to use whatever DOCTYPE you want to use in your own templates that you create. The DOCTYPE value is part of the templates, not part of the scripts. The scripts only remove/keep the DOCTYPE.

    Yours truly,
    Cusimano.Com Corporation
    per: David Cusimano

  7. Newsletter Signup

+ Reply to Thread

Similar Threads

  1. DOCTYPE and CSS
    By Doug247 in forum Midnight Cafe'
    Replies: 2
    Last Post: June 25th, 2009, 12:12 AM
  2. Adding HTML links to my template
    By techdiva in forum WebMerge (Fourthworld.com)
    Replies: 5
    Last Post: November 25th, 2008, 05:55 PM
  3. InstrumentPro template
    By beggers in forum Cusimano.com Scripts
    Replies: 1
    Last Post: November 28th, 2006, 01:27 PM
  4. How important the DOCTYPE?
    By ahmar in forum Programming / Datafeeds / Tools
    Replies: 7
    Last Post: January 21st, 2005, 05:33 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •