Skip to main content
Known Participant
February 22, 2017
Question

how to update hundreds of html bootstrap pages in dreamweaver

  • February 22, 2017
  • 3 replies
  • 961 views

This needs to be done in HTML.

I don't have an IT department that will install mySQL.  In the past I have used Dreamweaver templates. 

CC2017 doesn't allow the ability to use PHP with Bootstrap and Templates.  You can't create HTML templates with bootstrap either.  So what to do? I have hundreds of pages in my current setup but would like to use Bootstrap.

I also want to put PHP include files in HTML but that won't work either.  If it does, I don't know how to work around this.  I know enough code to create this. It just won't work in HTML

Hope I have expressed myself clearly.

PEOJ

    This topic has been closed for replies.

    3 replies

    BenPleysier
    Community Expert
    Community Expert
    February 23, 2017

    nc_joe@bellsouth.net  wrote

    This needs to be done in HTML.

    I don't have an IT department that will install mySQL.  In the past I have used Dreamweaver templates. 

    CC2017 doesn't allow the ability to use PHP with Bootstrap and Templates.  You can't create HTML templates with bootstrap either.  So what to do? I have hundreds of pages in my current setup but would like to use Bootstrap.

    I also want to put PHP include files in HTML but that won't work either.  If it does, I don't know how to work around this.  I know enough code to create this. It just won't work in HTML

    Hope I have expressed myself clearly.

    PEOJ

    To use PHP your documents must have a PHP extension like contact.php, not contact.html

    To use PHP in a template, the template must have a PHP extension such as myTemplate.dwt.php

    Wappler is the DMXzone-made Dreamweaver replacement and includes the best of their powerful extensions, as well as much more!
    Nancy OShea
    Community Expert
    Community Expert
    February 22, 2017

    Clear as mud actually.

    Why do you need a  mySQL database?

    Why do you think you can't make DWT Templates from a Bootstrap document?  It's no different than creating a Template from any other HTML page.

    PHP includes work very well in .php files if your server supports PHP.  To work with them locally, it's best to set-up a local testing server so you can preview your files before you upload to remote site.  I use CC 2017 (latest version) with Bootstrap and PHP includes with no problems.

    Download Wamp, Xampp or Mamp server for your OS and install on your computer.

    Define your testing server in DW by going to Site >  Manage Sites...

    Advanced Tab.

    Final screen:

    Nancy

    Nancy O'Shea— Product User & Community Expert
    nc_joeAuthor
    Known Participant
    February 23, 2017

    Thank you for the replies.

    To John

    I am currently using CS6 which does not handle bootstrap as well as CC2017.

    I need to make forms but in the past have used Access as my database.  I would like to use phpMyAdmin because it handles PHP forms.  The forms I currently use are ASP.

    IT will not give support for that so I would like to install, on my own if possible.

    I do want to use includes and the server does handle them. I see that you can have includes that use both PHP and HTML.  I want to insert PHP code in HTML pages. How is this done?

    You ask why, well I want to keep pages as close to what they are currently.  All my Administrators and such will cry bloody murder if too many are changed. They have memos they recycle every year and have web page links in these memos.  They don’t/won’t to have to update them.  Just reissue them.

    If I could just embed PHP includes into HTML and could use phpMyAdmin (MySQL) I would be a happy trooper.  PHP includes would enable me to update certain areas of my HTML pages and phpMyAdmin would enable me to make PHP forms.

    Hope I have made myself clear. 

    To Nancy

    I guess why I think I can’t make a template is because when you create a new page it does not give that option. I just have to create the editable and un-editable area of the page?

    Why do I need a SQL database?  See the above.  Dreamweaver provides much support for PHP and none for ASP.  And I can find much more information on the web regarding PHP too. Since it is open source.

    I do have a testing server. And I can set it up.  But I’m failing to see how database info can be uploaded and downloaded on the production server without MySQL being available on the production server as well? What am I missing?

    Gee, hope I have clarified something’s.

    PEOJ

    Jon Fritz
    Community Expert
    Community Expert
    February 23, 2017

    So, which version of DW are you actually using, CS6 or CC 2017?

    The answers you receive, especially relating to Bootstrap and Templates, will change based on that information with CS6 being 5-6 versions removed from the "current" CC2017.0.1.

    It may be best to abandon this wide-ranging thread and start new ones, with one question at a time, while providing all of the pertinent information about your workflow and the technologies you are actually using.

    Jon Fritz
    Community Expert
    Community Expert
    February 22, 2017

    If much of what you were saying above were accurate, I wouldn't be able to function in my duties as a website developer. As it stands, most of what you posted is, hopefully, a misunderstanding of the methods necessary to work with the things you want to work, within DW CC2017.

    Maybe you're coming from a much older version of the program?

    1. You don't need an IT department to install mySQL in order to use PHP, especially if you just want to use it for time saving items like includes. Most hosting companies give you a php installation as part of your package and installing XAMPP (a local testing server software) on a local system for testing during development is drop dead simple.

    How to set up a testing server in Dreamweaver

    2. CC2017 absolutely does allow the use of PHP with Bootstrap and Templates (though mixing all 3 would be weird).

    What are you having issue with exactly here?

    3. I don't know what you mean by "you can't create an html template with bootstrap either". Bootstrap is just css and html with a little javascript thrown in for special effects. It's no different than any other html page, html template or DW .DWT Template file on the internet. More complex maybe, but still just html, css and js.

    What have you tried so far?

    4. PHP include  won't work in a file with a .html extension unless you modify the server to process php in .html files. It's not a difficult modification, but it is generally thought of as a waste of server resources because your server would then process all html pages as if they had php whether they use it or not. The normal set up is to parse php scripts when it sees a .php extension.

    I guess we should start with does your remote server have PHP?