<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">Hi Kai,<br>
      <br>
      hm does that mean that if I am using relative links instead, I can
      avoid the static export? Just an idea ...<br>
      <br>
      Concerning links: We only have two kinds of links<br>
      <br>
      1. Links that are handled by JavaScript. These don't link to other
      pages but are for events etc., so not interesting here.<br>
      2. Links specified with OpenCmsVfsFile-fields or via properties.
      The code for the generation of these links is pretty long so I
      fear I can't post the whole code here. What I can post is the
      result: When I open an offline page in OpenCMS the links have the
      form <br>
      <br>
      /servlet-prefix/path/to/some/interesting/page.html<br>
      <br>
      online pages looks equal but without the servlet-prefix. Does that
      help?<br>
      <br>
      Thanks&Regards,<br>
      Gerhard<br>
      <br>
      Am 03.09.2014 15:45, schrieb Schliemann, Kai:<br>
    </div>
    <blockquote
cite="mid:3ac88f19cfb44c3da72f0394e0991f82@DBXPR03MB592.eurprd03.prod.outlook.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-1">
      <meta name="Generator" content="Microsoft Word 14 (filtered
        medium)">
      <style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";
        color:black;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.E-MailFormatvorlage17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
      <div class="WordSection1">
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Hi
            Gerhard,<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"
            lang="EN-US">I try to answer for Fabian again.<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"
            lang="EN-US">The additional prefix seems to be the OpenCms
            servlet name. In a standard installation it is “opencms”.<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">How do you see this? Ok,
            we have no "export" in the URL. But is "export" the unique
            sign for static exports?<br>
          </span><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"
            lang="EN-US">Because it seemed to be a relative link
            (/../../blablabla/). I didn’t see the leading / at first, so
            I thought that as well.<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"
            lang="EN-US">And it must not be “export” in the URL for
            statically exported pages. This is again the standard
            config.<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"
            lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">> Can you further
            post how a link to another OpenCms hosted page is generated.<br>
          </span><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"
            lang="EN-US">It is just a link from one page to another
            within OpenCms. For example a link generated for the
            navigation, the sitemap or a link within your content.<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"
            lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"
            lang="EN-US">BR<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"
            lang="EN-US">Kai<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"
            lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
        <div>
          <div style="border:none;border-top:solid #B5C4DF
            1.0pt;padding:3.0pt 0cm 0cm 0cm">
            <p class="MsoNormal"><b><span
style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext">Von:</span></b><span
style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext">
                <a class="moz-txt-link-abbreviated" href="mailto:opencms-dev-bounces@opencms.org">opencms-dev-bounces@opencms.org</a>
                [<a class="moz-txt-link-freetext" href="mailto:opencms-dev-bounces@opencms.org">mailto:opencms-dev-bounces@opencms.org</a>]
                <b>Im Auftrag von </b>Gerhard<br>
                <b>Gesendet:</b> Mittwoch, 3. September 2014 12:24<br>
                <b>An:</b> The OpenCms mailing list<br>
                <b>Betreff:</b> Re: [opencms-dev] Publishing problems<o:p></o:p></span></p>
          </div>
        </div>
        <p class="MsoNormal"><o:p> </o:p></p>
        <div>
          <p class="MsoNormal">Hi Fabian,<br>
            <br>
            ok now I am a bit confused, seems I still have to learn a
            lot about OpenCMS haha. I will try to answer:
            <br>
            <br>
            <script type="text/javascript"
src="/pathTo/commonStuff/configuration/js/javascriptfile3.js"></script><br>
            <br>
            This is indeed the form which appears in the online version.
            In the offline there is an additional prefix in front:<br>
            <br>
            <script type="text/javascript"
src="/aPrefix/pathTo/commonStuff/configuration/js/javascriptfile3.js"></script><br>
            <br>
            <br>
            >then the template makes no use of the static export
            feature.<br>
            <br>
            How do you see this? Ok, we have no "export" in the URL. But
            is "export" the unique sign for static exports?<br>
            <br>
            <br>
            <script type="text/javascript"
src="<cms:link>/pathTo/commonStuff/configuration/js/javascriptfile3.js</cms:link>"></script><br>
            <br>
            This is exactly the form we use in our templates.<br>
            <br>
            > Can you further post how a link to another OpenCms
            hosted page is generated.<br>
            <br>
            Not sure if I got you right here. We have an Util-class
            which converts OpenCmsVfsFile-values into a link in OpenCMS
            which can be used with a simple <a/> tag. Is that what
            you mean?<br>
            <br>
            Thanks&Regards,<br>
            Gerhard<br>
            <br>
            <br>
            Am 03.09.2014 11:55, schrieb <a moz-do-not-send="true"
              href="mailto:fhsubscriptions@componio.net">fhsubscriptions@componio.net</a>:<o:p></o:p></p>
        </div>
        <blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
          <div>
            <p class="MsoNormal">Hi Gerhard,<br>
              <br>
              let me clarify :-)<br>
              <br>
              <script type="text/javascript"
              src="/../../configuration/js/javascriptfile3.js"></script>
              <br>
              <br>
              If this is the link in the online generated HTML then the
              template makes no use of the static export feature.<br>
              However if this is the link generated while in the offline
              project it still is not a typical OpenCms link thus I
              guess that your template does not look like this:<br>
              <br>
              <script type="text/javascript"
src="<cms:link>/path/to/the/proper/directory/configuration/js/javascriptfile3.js</cms:link>"></script><br>
              <br>
              And again: <br>
              <br>
              Can you further post how a link to another OpenCms hosted
              page is generated.<u><br>
              </u><br>
              <br>
              \Fabian<br>
              <br>
              <br>
              Am 03.09.2014 11:31, schrieb Gerhard:<o:p></o:p></p>
          </div>
          <blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
            <div>
              <p class="MsoNormal">Hi Fabian,<br>
                <br>
                yes this is the browser generated HTML, the template
                code is below that ;-)<br>
                <br>
                Cheers,<br>
                Gerhard<br>
                <br>
                Am 03.09.2014 11:29, schrieb <a moz-do-not-send="true"
                  href="mailto:fhsubscriptions@componio.net">fhsubscriptions@componio.net</a>:<o:p></o:p></p>
            </div>
            <blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
              <div>
                <p class="MsoNormal">Hi Gerhard,<br>
                  <br>
                  Am 03.09.2014 11:17, schrieb Gerhard:<o:p></o:p></p>
              </div>
              <blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
                <p class="MsoNormal"><script type="text/javascript"
                  src="/../../configuration/js/javascriptfile3.js"></script>
                  <o:p></o:p></p>
              </blockquote>
              <p class="MsoNormal">This is not a typical OpenCms link.
                Do you make use of the <cms:link /> tag?<br>
                Can you further post how a link to another OpenCms
                hosted page looks like?<u><br>
                  <br>
                </u>Thanks,<br>
                <br>
                \Fabian<br>
                <u><br>
                  <br>
                  <br>
                </u><o:p></o:p></p>
              <p class="MsoNormal" style="margin-bottom:12.0pt"><u></head>
                  <br>
                  <br>
                  We include all static files like pictures, CSS,
                  JavaScript-files like this: <br>
                  <br>
                  <div class="icon"> <br>
                      <img
                  src="<cms:link>/common/../../picture.png</cms:link>">
                  <br>
                  </div> <br>
                  <br>
                  Files which are specified as content when editing in
                  OpenCMS are accessed via the I_CmsXmlDocument
                  Interface but I am not sure if you meant that too.
                  <br>
                  <br>
                  I am not sure what exactly gets statically exported. I
                  read about static export "on demand" and I guess this
                  is the mechanism used because we never do a manual
                  static export in the administration panel.
                  <br>
                  <br>
                  Concerning that Nginx our service provider said that
                  it is only proxying but doesn't cache anything.
                  <br>
                  <br>
                  Thanks&Regards, <br>
                  Gerhard <br>
                  <br>
                  <br>
                </u><o:p></o:p></p>
            </blockquote>
          </blockquote>
        </blockquote>
      </div>
    </blockquote>
    <br>
  </body>
</html>