15 Replies Latest reply on Aug 30, 2007 1:30 PM by jonmichael

    Showing Includes

    CBrownPhoto
      Even though DW help indicates SSI can be shown in browser view (I'm using Firefox and IE7), I can only get a preview in the Display panel.

      I've got my Preferences>Invisible Elements>Show SSI checked to show included files.

      I've tried various configurations of /'s, \'s, files virtuals, and even pointing to the file starting with (drive letter):\.... with no luck.

      Can someone tell me if this is possible, and where I can find the documentation?

      Thanks,
      Charlie
        • 1. Re: Showing Includes
          bregent Most Valuable Participant
          Does your included file include any head, body or html tags?
          • 2. Re: Showing Includes
            Level 7
            PMFJI but I too would like an answer to the question to which you have=20
            responded.

            bregent wrote:
            > Does your included file include any head, body or html tags?

            In my include files, as previously advised in this ng I have no head and =

            body tags. But because they are html files there are html tags.

            For example below is a footer include file that I use at:=20
            www.mcjtraining.co.uk:

            <div align=3D"left"><font size=3D"1" face=3D"Verdana, Arial, Helvetica,=20
            sans-serif">Send mail to the <a href=3D"mailto:mewalker at xyz.net"><font=
            =20
            color=3D"#000000">MCJ Webmaster</font></a> with questions or comments=20
            about this web site.<br />
            Copyright =A9 2007 MCJ Training and Development Limited<br />
            Last modified:
            <script language=3D"JavaScript" type=3D"text/javascript">
            document.write(doClock("W0",",%20","D1","%20","M0","%20","Y0"));
            </script>
            </font></div>

            Malcolm Walker
            • 3. Re: Showing Includes
              Arizona_Nature Level 1
              You have a web server running on your machine?
              • 4. Re: Showing Includes
                Level 7
                PMFJI - again!

                Arizona Nature wrote:
                > You have a web server running on your machine?

                I have Apache 2.2.4 and I believe from the tutorial at:
                http://minitutorials.com/apache/apache_222_3.shtml

                it is correctly configured for includes.

                But when I attempt to access my local disk-based site that has includes
                an error appears at the location of the includes reading:
                [an error occurred while processing this directive]. Two other sites
                without includes are correctly displayed.

                My efforts to find what I need to do to display the includes have so far
                proved futile. I think it is a path error but what and where have
                eluded me. So I am reduced to clutching at straws. {8:-((

                Malcolm Walker
                • 5. Re: Showing Includes
                  CBrownPhoto Level 1
                  bregent, no there are no header tags. It's a straight text document with an .inc extension.

                  Arizona Nature, no there's no server or sever software on this machine. Just two drives.
                  • 6. Re: Showing Includes
                    bregent Most Valuable Participant
                    >But because they are html files there are html tags.

                    No, I meant html tags, as in <html>. Other html markup tags are ok.
                    • 7. Re: Showing Includes
                      Level 7
                      Thank you for the clarification.

                      Malcolm

                      bregent wrote:
                      >> But because they are html files there are html tags.
                      >
                      > No, I meant html tags, as in <html>. Other html markup tags are ok.
                      • 8. Showing Includes
                        Arizona_Nature Level 1
                        Charlie, if I understand you correctly, you can view the includes in DW preview, but not when you send the file to a browser. If this is the case, then I believe you need to be running a server application such as apache or IIS in your local machiine to see the includes.

                        Malcolm, your problem sounds like a configuration issue with Apache. I run v1 of Apache so not sure about configuring v2. Maybe someone else will jump in.
                        • 9. Re: Showing Includes
                          CBrownPhoto Level 1
                          AZ Nature,

                          Thanks for the input.

                          After struggling with this for a couple of days, I'm coming to that conclusion.

                          Even though the DW documentation clearly states "With Dreamweaver you can preview documents just as they’ll appear after they’re on the server, both in the Design view and when you preview in a browser."

                          The operative word here is "preview", as in local machine browser. They don't tell you that you need Apache or IIS on the same machine.

                          Someone at Adobe should clear this one up. Or, at least change the on-line docs.

                          Again, thanks for the help.

                          Charlie
                          • 10. Re: Showing Includes
                            bregent Most Valuable Participant
                            >Charlie, if I understand you correctly, you can view the includes in DW preview, but not when you send the file to a browser. If >this is the case, then I believe you need to be running a server application such as apache or IIS in your local machiine to >see the includes.

                            Good catch. I had interpreted it to mean he was having problems in design view. But I think you are right.
                            • 11. Re: Showing Includes
                              Level 7
                              Enable Preview with temp files in your preferences. Then you'll see the
                              includes.

                              --
                              Murray --- ICQ 71997575
                              Adobe Community Expert
                              (If you *MUST* email me, don't LAUGH when you do so!)
                              ==================
                              http://www.dreamweavermx-templates.com - Template Triage!
                              http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
                              http://www.dwfaq.com - DW FAQs, Tutorials & Resources
                              http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
                              ==================


                              "CBrownPhoto" <webforumsuser@macromedia.com> wrote in message
                              news:fb51u5$8rc$1@forums.macromedia.com...
                              > AZ Nature,
                              >
                              > Thanks for the input.
                              >
                              > After struggling with this for a couple of days, I'm coming to that
                              > conclusion.
                              >
                              > Even though the DW documentation clearly states "With Dreamweaver you can
                              > preview documents just as they?ll appear after they?re on the server, both
                              > in
                              > the Design view and when you preview in a browser."
                              >
                              > The operative word here is "preview", as in local machine browser. They
                              > don't
                              > tell you that you need Apache or IIS on the same machine.
                              >
                              > Someone at Adobe should clear this one up. Or, at least change the on-line
                              > docs.
                              >
                              > Again, thanks for the help.
                              >
                              > Charlie
                              >
                              >


                              • 12. Re: Showing Includes
                                Level 7
                                Are you using root relative links for your include directives?

                                --
                                Murray --- ICQ 71997575
                                Adobe Community Expert
                                (If you *MUST* email me, don't LAUGH when you do so!)
                                ==================
                                http://www.dreamweavermx-templates.com - Template Triage!
                                http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
                                http://www.dwfaq.com - DW FAQs, Tutorials & Resources
                                http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
                                ==================


                                "Malcolm Walker" <mewalker@uwclub.net> wrote in message
                                news:fb4u2v$4ui$1@forums.macromedia.com...
                                > PMFJI - again!
                                >
                                > Arizona Nature wrote:
                                >> You have a web server running on your machine?
                                >
                                > I have Apache 2.2.4 and I believe from the tutorial at:
                                > http://minitutorials.com/apache/apache_222_3.shtml
                                >
                                > it is correctly configured for includes.
                                >
                                > But when I attempt to access my local disk-based site that has includes an
                                > error appears at the location of the includes reading:
                                > [an error occurred while processing this directive]. Two other sites
                                > without includes are correctly displayed.
                                >
                                > My efforts to find what I need to do to display the includes have so far
                                > proved futile. I think it is a path error but what and where have eluded
                                > me. So I am reduced to clutching at straws. {8:-((
                                >
                                > Malcolm Walker


                                • 13. Re: Showing Includes
                                  CBrownPhoto Level 1
                                  Murray, you've solved the problem.

                                  Many thanks for helping out.

                                  Charlie
                                  • 14. Re: Showing Includes
                                    Level 7
                                    You're welcome.

                                    --
                                    Murray --- ICQ 71997575
                                    Adobe Community Expert
                                    (If you *MUST* email me, don't LAUGH when you do so!)
                                    ==================
                                    http://www.dreamweavermx-templates.com - Template Triage!
                                    http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
                                    http://www.dwfaq.com - DW FAQs, Tutorials & Resources
                                    http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
                                    ==================


                                    "CBrownPhoto" <webforumsuser@macromedia.com> wrote in message
                                    news:fb6gq4$rep$1@forums.macromedia.com...
                                    > Murray, you've solved the problem.
                                    >
                                    > Many thanks for helping out.
                                    >
                                    > Charlie


                                    • 15. Re: Showing Includes
                                      jonmichael
                                      Charlie,

                                      Thanks so much for raising this issue. We've updated the docs to reflect these new requirements, and will be posting the update shortly.

                                      Jon Varese
                                      Lead Writer, Dreamweaver