2 Replies Latest reply: Jul 28, 2014 8:31 AM by macgarvin RSS

    Dreamweaver html pages using templates > go to 0k files on Business Catalyst

    macgarvin Community Member

      I have a Dreamweaver created site where some pages use one template within Dreamweaver - simple enough, the website works fine.

       

      But when I put the site up a a Business Catalyst test site, so that others can check out new draft text, the html files that work fine on the local server that use the template turn to 0k html files on the remote and the testing servers. I can actually see this happen if I view the remote server (from within Dreamweaver) - after a put is reported as successful, I can see it listed on the remote server for a couple of seconds with the correct number of kb, then it suddenly changes to 0k (i.e. after the successful put). html files that don't use a template are fine. If I convert the template based files within Dreamweaver to non-template based html, they work fine too.

       

      How do I stop this happening, and be able to use Dreamweaver template based html files?

       

      Ideally a simple work-around and suggestions to a more systematic approach, if that is two different answers and different amounts of time!

       

      Thanks, Malcolm

        • 1. Re: Dreamweaver html pages using templates > go to 0k files on Business Catalyst
          Gaurav.S Employee Hosts

          Hi,

           

          The BC FTP server checks if the DWT file (or the HTML file based on that template) has the right structure. If they don’t, the upload will fail (even though Dreamweaver will say that it’s successful). Right structure means: DWT file has 3 Editable regions in it: one for the <title> tag, one for adding stuff to the <head> tag, and one Editable Region that must contain {tag_pagecontent}.

          When a template is uploaded to the BC server, FTP strips the DWT mark-up, and transforms it into a BC template. BC FTP server splits the page and the template – and adds the page content under Site Manager -> Pages, and the template content under Site Manager -> Page Templates.

          • 2. Re: Dreamweaver html pages using templates > go to 0k files on Business Catalyst
            macgarvin Community Member

            Thanks Gaurav

             

            I've got more than one editable region in the body, and want other body parts to be un-editable, so that answers that question, even if its not the answer I would have liked! I guess from that answer that Dreamweaver created nested templates are going to be a no-no for BC as well?

             

            I think what I am learning is that Dreamweaver and BC are stitched together rather than seamlessly integrated! I'm coming at this from the Dreamweaver side thinking that maybe BC could be useful initially for allowing others to view and make minor amendments to draft websites, and maybe wholesale adoption later. But having BC transforming my dreamweaver created files is a bit of a no-no - I'm only experimenting.

             

            For the moment, if I persisted with BC, I can bake the html files when transferring them to the BC test site, people can comment and amend text, and I can copy back across to the working copy. Otherwise there seems to be a new learning curve which I can't afford right now. But I can dabble around with BC and see how the pros and cons stack up.