[opencms-dev] Publishing problems
Gerhard
opencms at archeron.de
Wed Sep 3 12:23:56 CEST 2014
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:
> 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:
>>> 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] 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/e3f4e9ba/attachment.htm>
More information about the opencms-dev
mailing list