[opencms-dev] Publishing problems

Schliemann, Kai K.Schliemann at comundus.com
Wed Sep 3 15:45:39 CEST 2014


Hi Gerhard,
I try to answer for Fabian again.
The additional prefix seems to be the OpenCms servlet name. In a standard installation it is "opencms".
How do you see this? Ok, we have no "export" in the URL. But is "export" the unique sign for static exports?
Because it seemed to be a relative link (/../../blablabla/). I didn't see the leading / at first, so I thought that as well.
And it must not be "export" in the URL for statically exported pages. This is again the standard config.

> Can you further post how a link to another OpenCms hosted page is generated.
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.

BR
Kai


Von: opencms-dev-bounces at opencms.org [mailto:opencms-dev-bounces at opencms.org] Im Auftrag von Gerhard
Gesendet: Mittwoch, 3. September 2014 12:24
An: The OpenCms mailing list
Betreff: Re: [opencms-dev] Publishing problems

Hi Fabian,

ok now I am a bit confused, seems I still have to learn a lot about OpenCMS haha. I will try to answer:

<script type="text/javascript" src="/pathTo/commonStuff/configuration/js/javascriptfile3.js"></script>

This is indeed the form which appears in the online version. In the offline there is an additional prefix in front:

<script type="text/javascript" src="/aPrefix/pathTo/commonStuff/configuration/js/javascriptfile3.js"></script>


>then the template makes no use of the static export feature.

How do you see this? Ok, we have no "export" in the URL. But is "export" the unique sign for static exports?


<script type="text/javascript" src="<cms:link>/pathTo/commonStuff/configuration/js/javascriptfile3.js</cms:link>"></script>

This is exactly the form we use in our templates.

> Can you further post how a link to another OpenCms hosted page is generated.

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?

Thanks&Regards,
Gerhard


Am 03.09.2014 11:55, schrieb fhsubscriptions at componio.net<mailto:fhsubscriptions at componio.net>:
Hi Gerhard,

let me clarify :-)

<script type="text/javascript" src="/../../configuration/js/javascriptfile3.js"></script>

If this is the link in the online generated HTML then the template makes no use of the static export feature.
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:

<script type="text/javascript" src="<cms:link>/path/to/the/proper/directory/configuration/js/javascriptfile3.js</cms:link>"></script>

And again:

Can you further post how a link to another OpenCms hosted page is generated.


\Fabian


Am 03.09.2014 11:31, schrieb Gerhard:
Hi Fabian,

yes this is the browser generated HTML, the template code is below that ;-)

Cheers,
Gerhard

Am 03.09.2014 11:29, schrieb fhsubscriptions at componio.net<mailto:fhsubscriptions at componio.net>:
Hi Gerhard,

Am 03.09.2014 11:17, schrieb Gerhard:
<script type="text/javascript" src="/../../configuration/js/javascriptfile3.js"></script>
This is not a typical OpenCms link. Do you make use of the <cms:link /> tag?
Can you further post how a link to another OpenCms hosted page looks like?

Thanks,

\Fabian



</head>

We include all static files like pictures, CSS, JavaScript-files like this:

<div class="icon">
    <img src="<cms:link>/common/../../picture.png</cms:link>">
</div>

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.

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.

Concerning that Nginx our service provider said that it is only proxying but doesn't cache anything.

Thanks&Regards,
Gerhard

Am 03.09.2014 10:20, schrieb Schliemann, Kai:

Hi Gerhard,
from inside OpenCms you can only influence, if files/folders should be statically exported or not. This is what Fabian already described.
Is it possible for you to send a part of the browser generated html source?
The <head> section with the css / js files would be interesting. And a part of the source, where an image, a download file and an OpenCms internal link (to another page in OpenCms) is contained. You could change the file names, if you do not want to name them here. I am only interested in the path and if the files are statically exported or not.

One other thing. Is it possible, that Nginx is working as a proxy server and thus caching the mentioned files?

Best regards
Kai

-----Ursprüngliche Nachricht-----
Von: opencms-dev-bounces at opencms.org<mailto:opencms-dev-bounces at opencms.org> [mailto:opencms-dev-bounces at opencms.org] Im Auftrag von Gerhard
Gesendet: Mittwoch, 3. September 2014 09:53
An: The OpenCms mailing list
Betreff: Re: [opencms-dev] Publishing problems

Hi Fabian,

ok to get some more light in the dark (for me :-): Is there a possibility to influence the static export mechanism directly within OpenCMS? I mean is there a place where I can plug in my own code for the static export?

Thanks,
Gerhard

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20140903/1b587709/attachment.htm>


More information about the opencms-dev mailing list