1 2 Previous Next 40 Replies Latest reply: Jul 2, 2012 11:02 AM by newwoodworker RSS

    Deploy template across multiple sites

    newwoodworker

      I have a very large site (www.newwoodworker.com) that has gotten very big and to make it more manageable to keep up I broke it down into sub sites within the major one. The sub sites are in folders within the main site directory, for instance the Tool Reviews are in a separate site in the reviews folder within the primary site.

       

      Is there a way to deploy a single template to all of the sites? I am looking at using a fluid layout template if that matters in this.

        • 1. Re: Deploy template across multiple sites
          MurraySummers ACP/MVPs

          When you say "separate site" what do you mean?

          If you connect to the parent site, can you get at all of the files in all of the "sub sites" from that parent site's root folder?  If so, then one template could work for all of the files.

          • 2. Re: Deploy template across multiple sites
            newwoodworker Community Member

            tghe main site is the root folder on the server and all of the sub sites are in separate folders within that directory. the reviews for instance are in the a folder named "reviews" and that folder is within the root folder of the overall site. I think I know what you mean and will try that on a test page shortly.

            if tyou look at www.newwoodworker.com and click in the nav bar at left on things like "Basics", "Reference" -"Tool reviews" you will see they come up with the folder they are in within the root directory of the site. I hope I am explaining this right!

            • 3. Re: Deploy template across multiple sites
              MurraySummers ACP/MVPs

              If, by connecting to the main site you can see all of the files/folders that make up the site, then a single template will work fine.  If your sub sites were in folders that were NOT within the main site's root folder, then a single template would not work.

              • 4. Re: Deploy template across multiple sites
                newwoodworker Community Member

                I think I have miss spoken. I just went to try the linking and while all of the folders are int he root directory of the site, they are not within the main site folder. the sub sites are in their own folders, within the root directory of the site.

                Now, If I would go into my files manager on the site and drag/drop the sub sites into the main site folder, would Ddreamweaver develop a gun and shoot me dead? Or anyething worse happen?

                • 5. Re: Deploy template across multiple sites
                  MurraySummers ACP/MVPs

                  I think I have miss spoken. I just went to try the linking and while all of the folders are int he root directory of the site, they are not within the main site folder. the sub sites are in their own folders, within the root directory of the site.

                   

                  Now you are confusing me because it sounds like you are saying the same thing in both instances.  The root folder *IS* the main folder of the site.  A single template will work with any file in any folder that is within the root folder of the site.  But just to be sure, show me a path to your local site's root folder, and then a path to one of your local sub site's 'root' folder.

                   

                  Looking at your site, I can see that this index.html file is located within a folder called "basic" (http://www.newwoodworker.com/basic/index.html), and this index.html file is within a folder called "ref" (http://www.newwoodworker.com/ref/index.html), both of which are within the root of the site.  It seems you are over-thinking this simple and fairly common arrangement.

                  • 6. Re: Deploy template across multiple sites
                    newwoodworker Community Member

                    All of the folders are within the root directory on the server, but not within the folder that contains the major portion of the site. If I look at the files window in dreamweaver I cannot see those other site folders apparently because they are not within the maint sites folder. Maybe I have been confusing this by not saying they are all in the root directory.

                    I would have to be able to navigate to them withint eh files window in Dreamweaver for the links to work right? as I undersztand it, then all of the sub site folders would have to be located within the main site folder, not just in the root directory?

                    • 7. Re: Deploy template across multiple sites
                      MurraySummers ACP/MVPs

                      Show me the paths to each local sub site's 'root' folder, and the path to the main site's local root folder.  It's as simple as that.

                      • 8. Re: Deploy template across multiple sites
                        newwoodworker Community Member

                        the root directory of the site has individual folders for the main site (folrder name nww), a folder for basic, one for reviews, one for reference, one for Tool Reviews and one for Turning. all of them are within the root directory but they are all separate within the directory. Right now I have templates in each of the folders because I could not find ways to make direct links to pages outside of each individual folder.If I am working in the NWW main sites folder, I can't see the files in basic, reviews ro the others. I have been making long links like http://www.newwoodworker.com/reviews/and whatever page I want to link to in that folder. I don;t know how to draw the links out physically

                        • 9. Re: Deploy template across multiple sites
                          MurraySummers ACP/MVPs

                          Please show me the path to your folders.  That's all I need to see to answer your question.  Don't try to describe it to me.  Just tell me how to get from the top level of your hard drive to each of these locations.

                           

                          COMPLETE THIS FORM:

                          The path to my main site's root folder is...

                          The path to my basic site's root folder is...

                          The path to my reference site's root folder is...

                           

                          Got it?

                          • 10. Re: Deploy template across multiple sites
                            newwoodworker Community Member

                            From: Murray ACP forums@adobe.com

                            Sent: Sunday, July 01, 2012 8:27 AM

                            To: newwoodworker

                            Subject: Deploy template across multiple sites

                             

                             

                             

                             

                             

                            Re: Deploy template across multiple sites

                             

                             

                            created by Murray ACP <http://forums.adobe.com/people/Murray+ACP>  in Dreamweaver - View the full discussion <http://forums.adobe.com/message/4531503#4531503

                            • 11. Re: Deploy template across multiple sites
                              newwoodworker Community Member

                              www.newwoodworker.com - main site folder

                              basic - www.newwwoodworker.com/basic

                              reference - www.newwoodworker.com/ref   etc. all of the sub sites folders are outside of the main site folder, but all within the root directory on the server.

                              • 12. Re: Deploy template across multiple sites
                                MurraySummers ACP/MVPs

                                No - that's not what I asked for.  Show me the path from the root of your local hard drive to the various folders mentioned.

                                 

                                DW's templates ONLY function within DW to manage your LOCAL files.  To answer your question of whether you can use a single template to manage all of the files in your site, I need to know what the path is to each of these groups of files.

                                • 13. Re: Deploy template across multiple sites
                                  newwoodworker Community Member

                                  All of the sites files are grouped in a folder named NWWSITES.

                                  Within that folder is the NWW FOLDER which is the main site

                                  a folsder named BASIC which contains that sub site

                                  A folder named REF which holds the reference subsite files

                                  a folder named REVIEWS which holds the tool reviews subsite files

                                  a folder named TURNING that holds the woodturning substie files.

                                  • 14. Re: Deploy template across multiple sites
                                    MurraySummers ACP/MVPs

                                    In your site definition, is NWWSITES the local root folder?  If it is, then you can use one template.  If it's not, then you cannot use one template.

                                    • 15. Re: Deploy template across multiple sites
                                      newwoodworker Community Member

                                      nwwsites is the folder on the hard drive that contains all of the sites, jsut to keep them in one place.

                                      The main site, NWW where the template woujld live is in the NWW folder wsith all of the other sites outside of that NWW folder but withint the NWWsites. The NWWSITES folder has nothing to do with Dreamweaver, jsut a place to group the sites and files.

                                      If copy the basic folder into the NWW folder, I can see those files to make links on the teimplate. Otherwise I can;t see them within dreamweaver.

                                      • 16. Re: Deploy template across multiple sites
                                        MurraySummers ACP/MVPs

                                        When you look at the site definition for the NWW site, is NWWSITES the root folder?  It doesn't sound like it is.  In that case you have shot yourself in the foot because you have taken a simple file architecture and made it much more complex.  As it is now, to link from a file in the BASIC folder to a file at the root level of the site you must use an absolute link reference (which will not be maintained by DW in the event that you move, or rename that linked file).  In addition to making link management more difficult you have eliminated the possibility of managing all your files with a single template.  I don't think this was a very good plan....

                                        • 17. Re: Deploy template across multiple sites
                                          newwoodworker Community Member

                                          I agree that it's not a good idea now. This layout was described to me years ago by someon on the dreamweaver forum back then, probably 7 yeqrs ago or so. What I need to know now is if I move all of the folders into the NWW folder, which is the actual root for the site, I can then use a single template. I know that I have to maek the template and that this is a lot of work but I want to fix the architecture to make future years easier.

                                          • 18. Re: Deploy template across multiple sites
                                            MurraySummers ACP/MVPs

                                            Well, you would have to be careful.  The problem is that you will have a "Templates" folder within the NWW folder which would now no longer be the root of the site.  Can you upload that folder to the website and post a link to it so that I can examine the link structure?

                                            • 19. Re: Deploy template across multiple sites
                                              newwoodworker Community Member

                                              That folder is huge so that wold take some time. I can say that there are no lnks to other sites that are not absolute, like http://www.newwoodworker.com/basic/the page wanted. the only links that go right to pages are those withint he NWW core site itself, the pages actually contained in that folder.

                                              I know I am going to blow this thing up in doing this. What I want to do is to put all of the site folders within the root, NWW folder so that on the new template all the links will be direct. If that means taking the site down for a few days, that's fine.

                                              • 20. Re: Deploy template across multiple sites
                                                MurraySummers ACP/MVPs

                                                You have some choices here.  Are the files in the sub sites also controlled by their own templates?

                                                 

                                                If not, then perhaps the easiest way to manage this would be to use FINDER/EXPLORER (i.e., NOT DW) to move each sub-site folder into the NWW root.  On going back into DW and refreshing your Files panel, you should see all of the files/folders.  Document relative links without those folders should still work.  Root relative links will not and should be fixed by you.  Are you with me to this point?

                                                • 21. Re: Deploy template across multiple sites
                                                  newwoodworker Community Member

                                                  each of the sub sites does have a template assigned to them because that was how it was explained to me the first time. io w2as trying to prevent the massive updates of one all inclusive site back then because of the tedious ftp. Now I would rather go thorugh the work of bringing them all into the root folder so I can control all with one template. I am making a fluid layout template to get my site better suited for the devices anyway.

                                                   

                                                  If I jsut drag/drop the sub sites into the root NWW folder and then start dreamweaver, will it try to update any of the links on the individual templates? I jsut am trying to see if I need to take the whole thing down to apply the new overall template

                                                   

                                                  that's fine if that is what I have to do. I need to get everything under one template

                                                  • 22. Re: Deploy template across multiple sites
                                                    MurraySummers ACP/MVPs

                                                    First, make a complete backup of the site as it sits now (from NWWSITES down, i.e., copy the NWWSITES folder and paste it somewhere safe).

                                                    If I jsut drag/drop the sub sites into the root NWW folder and then start dreamweaver, will it try to update any of the links on the individual templates?

                                                     

                                                    DW willl then only recognize the template that sits in the Templates folder at the root of the site.  The subsite templates will no longer be used as templates. 

                                                     

                                                    Now tell me - how do the subsite templates differ from the main site template?  Is it not at all, or a little bit, or lots?

                                                    • 23. Re: Deploy template across multiple sites
                                                      newwoodworker Community Member

                                                      Did the full backup this morning. (I do learn eventually)

                                                      The individual templates don't vary by much, more the absolute links in the nav bars than anything. I can get rid of all that with the fluid layout tremplate I am working on.

                                                      • 24. Re: Deploy template across multiple sites
                                                        MurraySummers ACP/MVPs

                                                        OK - that's good.  Then proceed with the moving.  Then you'll have to go into each subsite and check all the links.

                                                        • 25. Re: Deploy template across multiple sites
                                                          MurraySummers ACP/MVPs

                                                          Actually, let DW do this for you.  Instead, with all files closed, do a series of Find and Replace steps, one for each subsite.  In sequence, search for each subsite template name (e.g., subsite1.dwt), and replace with your main site template name.  One by one, this will bring all subsite pages under the control of your main template.

                                                          • 26. Re: Deploy template across multiple sites
                                                            newwoodworker Community Member

                                                            OK, a Find and Replace within Dreamweaver? It's going to be a few days before I have the new template ready to go so I have time to get this all straight in my head and on the computers. Another issue might be that all (or most anyway) of the individual site templates have the same name, just located in the separate site folders.Each of those sub sites is a full on dreamweaver site so they have their own template folder.

                                                            • 27. Re: Deploy template across multiple sites
                                                              MurraySummers ACP/MVPs

                                                              As soon as you move the subsite folders into the main site folder, the existing subsite templates will be disabled since they are no longer in the Templates folder at the root of the site.  And yes you run the F&R within DW.

                                                              • 28. Re: Deploy template across multiple sites
                                                                newwoodworker Community Member

                                                                I'll wait until I have the template built and tested before doing any of that. I'm a couple days away from that I think, maybe a touch more. I want to be sure of this new fluid laout template before knocking the site apart.  Thanks a alot for the help

                                                                • 29. Re: Deploy template across multiple sites
                                                                  newwoodworker Community Member

                                                                  OK, so I made a fluid layout template, included an editable content area so I can use it on my site but when I apply the template to a cleared page, it looks nothing like when it was build with div's jumping over each other or dissappearing altogether. the template was made/sized for the computer screen and when I go back and look at that template file, it's just as I left it. the page with the template applied is http://www.newwoodworker.com/test.html

                                                                   

                                                                  I kow fluid layouts are not going to be as easy as many might suspect butt his is really dissheartening with everything jusrt disregarding where it used to be.

                                                                   

                                                                  Any thoughts would be appreciated.

                                                                  • 30. Re: Deploy template across multiple sites
                                                                    MurraySummers ACP/MVPs

                                                                    Make sure you have uploaded all related files.  It appears that your boilerplate.css, newlogo.gif, nwwtmplt.css and respond.js files are not found by this page.

                                                                    • 31. Re: Deploy template across multiple sites
                                                                      newwoodworker Community Member

                                                                      I just went back and manually selected everything int he templates folder and upladed all that, ftp says successfully

                                                                      • 32. Re: Deploy template across multiple sites
                                                                        MurraySummers ACP/MVPs

                                                                        The files mentioned are not in the Templates folder.  in fact, nothing should be in the Templates folder other than the templates themselves (i.e., *.dwt files).  And in fact again, there is no benefit in uploading the Template folder anyhow since the template files have no function on the server - only working while you are actually in DW working on your local site.  Find the files that I have listed in your local site and upload them!

                                                                        • 33. Re: Deploy template across multiple sites
                                                                          newwoodworker Community Member

                                                                          Sorry. I didn;t know the template files were someplace else, or supposed to be. the only placve DW has the boilerplate.css is int eh templates folder. the respond.js file also, is in the templates folder where DW must have put them. I will copy the boolil.erplate to the css folder but am unsure aboutt he js file, where that one goes.

                                                                          • 34. Re: Deploy template across multiple sites
                                                                            newwoodworker Community Member

                                                                            the boilerplate and template css files are in the css folder and I added the respond js file to the scripts, opened and saved the template file and the tezxt page with some content in the content holder just to show where that is now.

                                                                            • 35. Re: Deploy template across multiple sites
                                                                              newwoodworker Community Member

                                                                              i also discovered that the template html file was only in teh templates folder so copied that to the main part of the root folder wi th the rest of the html files and have loaded that, updated the test page ertc and loaded that again as well.

                                                                              • 36. Re: Deploy template across multiple sites
                                                                                MurraySummers ACP/MVPs

                                                                                the respond.js file also, is in the templates folder where DW must have put them.

                                                                                 

                                                                                DW will not put those files in the Templates folder.  If they are in there, you must have inadvertantly done something that placed them there. 

                                                                                 

                                                                                I don't know what you are doing wrong, but your links to these files are screwy.  THis is the code on the page you have uploaded -

                                                                                 

                                                                                <link href="boilerplate.css" rel="stylesheet" type="text/css">

                                                                                <link href="nwwtmplt.css" rel="stylesheet" type="text/css">

                                                                                The links are looking for those files at the same folder level as the page.  Yet you are telling me that they are in other folders.  When you moved these files did you use DW's Files panel to do so?

                                                                                • 37. Re: Deploy template across multiple sites
                                                                                  newwoodworker Community Member

                                                                                  When I made the template I saved it as a template and then did the select recently modified files (1 DAY) and all DW found was the files in the Templates folder. I did use the files window in DW to move copies out into the CSS and Scripts folders. Plus I searched for the template html file and the only place DW located it w3as int eh Templates folder again. If saving the template as a template is doing it wrong and causing it to put them in that folder, they need to fix ths thing!

                                                                                  • 38. Re: Deploy template across multiple sites
                                                                                    newwoodworker Community Member

                                                                                    I jsut went back, i opened the template file in DW, saved it as a tem plate under a different name and it again put it only in the Templates folder, nothing in the main folder with the html pages.

                                                                                    • 39. Re: Deploy template across multiple sites
                                                                                      MurraySummers ACP/MVPs

                                                                                      WHen you save it as a template file are you using FILE > Save As, or are you using FILE > Save As Template...?  The former won't work properly.  The latter will automatically put the template file into the Templates folder.

                                                                                       

                                                                                      When you make the links to the dependent files, are you browsing to find the linked file or are you making those links manually?

                                                                                      1 2 Previous Next