5 Replies Latest reply: May 2, 2013 4:43 PM by jkrys RSS

    Editing Local Dynamic Pages - How To?

    jkrys Community Member

      I figure this should be something simple but I can't seem to figure out how to do it. In the past I believe this is something I was able to do in DW.

       

      I've set up my website locally running off my local server and everything there seems to be working in DW. I can view the live page and live code. However, I can't view the live page and edit that page.

       

      Does anyone have any recommendation on how I can best add some code into a dynamic page? I'm running CS5. Here's a screenshot of an example. Let's say I wanted to insert some simple code where the arrrow is.

       

      I really need some help on this as it's something I was under the impression I could do. Thanks for any help you can give.

       

      SS5.JPG

        • 1. Re: Editing Local Dynamic Pages - How To?
          jkrys Community Member

          Any tutorials someone can provide that may help? This is my first time using CS5 and from what I recall I was able to edit sites little easier in previous version.

          • 2. Re: Editing Local Dynamic Pages - How To?
            Jon Fritz II CommunityMVP

            Turn off Live Code and you will be able to edit the source code while Live View is turned on.

             

            Turn off Live View and you will be able to edit in Design View.

             

            Live Code is a debugging tool that shows you how scripting changes your site's code as you click buttons, hover over images, etc. It is not for making edits and needs to be turned off in order to change things.

            • 3. Re: Editing Local Dynamic Pages - How To?
              jkrys Community Member

              Jon thanks. When I turn off Live Code and leave Live View on the code displayed is just of index.php (no matter what live page I'm on). So I can't really edit anything.

              • 4. Re: Editing Local Dynamic Pages - How To?
                Nancy O. CommunityMVP

                When I turn off Live Code and leave Live View on the code displayed is just of index.php (no matter what live page I'm on). So I can't really edit anything.

                That's right.  Those files contain nothing to edit.  It's all just PHP programming that the server parses into content from the database and countless other files (server-side includes).  

                 

                A WordPress site really is a one page site -- index.php.  That page is re-created on the fly each time someone clicks a link or uses the search bar.

                 

                If you have worked with WordPress before, you should know you cannot edit dynamic pages in DW.  You can only edit the parts that make up those pages.  Those parts are inside your Themes folder.

                 

                header.php

                sidebar.php

                footer.php

                index.php

                single.php

                page.php

                archive.php

                category.php

                tag.php

                etc...

                 

                Design View is pretty much useless.  You must be able to work with code.

                 

                 

                Nancy O.

                • 5. Re: Editing Local Dynamic Pages - How To?
                  jkrys Community Member

                  Yes, that's correct. Jon had said turn live code off to edit, however like you say you can't edit anything when its Wordpress.

                   

                  In the past I have edited those pages mention in wordpress but this particular template's use of plugins in their design has made it a bit more frustrating. I would like to make some simple edits on pages where the plugin is called, so the edits I really want to make are within the plugin files.