<font size=2 face="sans-serif">Hi </font><tt><font size=2>Paul</font></tt><font size=2 face="sans-serif">,</font>
<br><font size=2 face="sans-serif">          Thanks
for valuable reply, Actually i am able to assign categories to pdf, docs
etc files. But how to generate dynamic url to these files using function.
Like what i am doing for article is:- coded example below:</font>
<br>
<br><font size=2 face="sans-serif">         
               
      <ul></font>
<br><font size=2 face="sans-serif">         
               
              <%--
Define a Solr query --%></font>
<br><font size=2 face="sans-serif">         
               
              <c:set
var="solrQuery">&fq=categoryTypes=testcategory&sort=created
asc</c:set></font>
<br><font size=2 face="sans-serif">         
               
              <%--
Define a create path --%></font>
<br><font size=2 face="sans-serif">         
               
              <c:set
var="createPath">my-article-templates/.content/articles/</c:set></font>
<br><font size=2 face="sans-serif">         
               
              <%--
Collect the resources --%></font>
<br><font size=2 face="sans-serif">         
               
              <cms:contentload
collector="byContext" param="${solrQuery}|createPath=&{createPath}"
preload="true" ></font>
<br><font size=2 face="sans-serif">         
               
               
      <cms:contentinfo var="info" /></font>
<br><font size=2 face="sans-serif">         
               
               
               
               
              </font>
<br><font size=2 face="sans-serif">         
               
               
      <c:if test="${info.resultSize >
0}"></font>
<br><font size=2 face="sans-serif">         
               
               
              <cms:contentload
editable="true"></font>
<br><font size=2 face="sans-serif">         
               
               
               
      <cms:contentaccess var="content"
/></font>
<br><font size=2 face="sans-serif">         
               
               
               
      <li class="article-li"></font>
<br><font size=2 face="sans-serif">         
               
               
               
              <h4
class="article-list margin-bottom-10" style="margin-bottom:7px"><a
href="<cms:link>${content.filename}</cms:link>">${content.value.Title}</a></h4></font>
<br><font size=2 face="sans-serif">         
               
               
               
              <%--<p>${content.value.Text}</p>--%></font>
<br><font size=2 face="sans-serif">         
               
               
               
      </li></font>
<br><font size=2 face="sans-serif">         
               
               
              </cms:contentload></font>
<br><font size=2 face="sans-serif">         
               
               
      </c:if></font>
<br><font size=2 face="sans-serif">         
               
               
      <%-- <c:if test="${info.resultSize
== 0}"></font>
<br><font size=2 face="sans-serif">         
               
               
               
      Nothing found for query:<br/><em>${solrQuery}</em></font>
<br><font size=2 face="sans-serif">         
               
               
      </c:if> --%></font>
<br><font size=2 face="sans-serif">         
               
              </cms:contentload></font>
<br><font size=2 face="sans-serif">         
               
      </ul></font>
<br>
<br><font size=2 face="sans-serif">can i write this type of function for
pdf, docs etc. files, so that dynamic url can be generate. I am also have
another question regarding opencms configuration if you can help on that
than i can post that question too.</font>
<br>
<br><font size=2 face="sans-serif">With Regards</font>
<br><font size=2 face="sans-serif">Manoj Kumar Sharma</font>
<br>
<p>
<br>
<br>
<table width=100%>
<tr>
<td>
<td width=100%>
<table width=100%>
<tr valign=top>
<td width=100%><font size=2 face="sans-serif"><b>opencms-dev Digest, Vol
157, Issue 5</b></font></table>
<br>
<table width=100%>
<tr>
<td><font size=2 color=#e26200 face="sans-serif"><b>opencms-dev-request
</b></font>
<td><font size=2 color=#8f8f8f face="sans-serif">to:</font>
<td><font size=2 face="sans-serif">opencms-dev</font>
<td>
<div align=right><font size=1 face="sans-serif">10/31/2014 04:32 PM</font></div></table>
<br>
<table width=100%>
<tr>
<td>
<table width=100%>
<tr>
<td><font size=2 color=#8f8f8f face="sans-serif">Sent by:</font>
<td width=100%><font size=2 color=#e26200 face="sans-serif"><b>opencms-dev-bounces@opencms.org</b></font></table>
<br><font size=1 face="sans-serif"><b>Please respond to opencms-dev</b></font>
<td>
<div align=right></div></table>
<br></table>
<br>
<br>
<hr>
<br>
<br>
<br><tt><font size=2>Send opencms-dev mailing list submissions to<br>
                
opencms-dev@opencms.org<br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
                
</font></tt><a href="http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev"><tt><font size=2>http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev</font></tt></a><tt><font size=2><br>
or, via email, send a message with subject or body 'help' to<br>
                
opencms-dev-request@opencms.org<br>
<br>
You can reach the person managing the list at<br>
                
opencms-dev-owner@opencms.org<br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of opencms-dev digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
   1. Re: Is CSS and JS optimization coming to cms:headIncludes in<br>
      OpenCms 9.5? (Alessandro Magnolo)<br>
   2. OpenCMS 8/9 PDF Link IE8 not working (T.Kluge@t-systems.com)<br>
   3. Using of SOLR timezone parameter (Filip Kratochvil)<br>
   4. Re: How to add pdf,doc,ppt file into category (Paul-Inge Flakstad)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Thu, 30 Oct 2014 13:47:35 +0100<br>
From: Alessandro Magnolo <alessandro.magnolo@gmail.com><br>
To: The OpenCms mailing list <opencms-dev@opencms.org><br>
Subject: Re: [opencms-dev] Is CSS and JS optimization coming to<br>
                
cms:headIncludes in OpenCms 9.5?<br>
Message-ID:<br>
                
<CA+GGvz_afgQiTEBEU3BwwuVVq74-vqGwdkG1TgE1+YzVLDMyxQ@mail.gmail.com><br>
Content-Type: text/plain; charset=UTF-8<br>
<br>
Hello Christian,<br>
in case you're interested, at the next OpenCms days we'll present a<br>
module that, amongst other things, does automatic CSS and JS<br>
minification.<br>
This is the session:<br>
</font></tt><a href="http://www.opencms-days.org/news/Enhancing-OpenCms-front-end-development-with-Sass-and-Grunt/"><tt><font size=2>http://www.opencms-days.org/news/Enhancing-OpenCms-front-end-development-with-Sass-and-Grunt/</font></tt></a><tt><font size=2><br>
<br>
Regards,<br>
Alessandro Magnolo<br>
<br>
On Fri, Sep 19, 2014 at 10:31 PM, Christian Bj?rnbak<br>
<cbj@touristonline.dk> wrote:<br>
> Hi<br>
><br>
> I'm wondering if CSS and JS optimization will be built in to<br>
> cms:headIncludes in OpenCms 9.5?<br>
><br>
> The WebOptimization v8 module does a similar job but we can't make
it work<br>
> in OpenCms 9.0.1.<br>
><br>
> Besides the cms:headIncludes has the new feature of dynamically collecting<br>
> CSS and JS to add in the <head>.<br>
><br>
> It would be natural to add the option to optimize the CSS and JS by
merging<br>
> the content of the files into one and minify it.<br>
><br>
> And further could headIncludes be expanded to be able to load the
files<br>
> asynchronously.<br>
><br>
> Is Alkacon or anybody else working on such improvements?<br>
><br>
> Are they going to be part of or ready around OpenCms 9.5?<br>
><br>
><br>
> Med venlig hilsen / Kind regards,<br>
><br>
> Christian Bj?rnbak<br>
><br>
> Chefudvikler / Lead Developer<br>
> TouristOnline A/S<br>
> Islands Brygge 43<br>
> 2300 K?benhavn S<br>
> Denmark<br>
> TLF: +45 32888230<br>
> Dir. TLF: +45 32888235<br>
><br>
> _______________________________________________<br>
> This mail is sent to you from the opencms-dev mailing list<br>
> To change your list options, or to unsubscribe from the list, please
visit<br>
> </font></tt><a href="http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev"><tt><font size=2>http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev</font></tt></a><tt><font size=2><br>
><br>
><br>
><br>
><br>
<br>
<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Thu, 30 Oct 2014 16:32:38 +0100<br>
From: <T.Kluge@t-systems.com><br>
To: <opencms-dev@opencms.org><br>
Subject: [opencms-dev] OpenCMS 8/9 PDF Link IE8 not working<br>
Message-ID:<br>
                
<901586CA8F92D543BFFFD6E1122F5A36027F664BB59E@HE101453.emea1.cds.t-internal.com><br>
                
<br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
Hi all,<br>
<br>
We stuck on a problem that a CMS PDF is not downloadable within IE8 (all
other browsers do) from within the cms surflet context.<br>
<br>
The http response header looks like this:<br>
<br>
HTTP/1.1 200 OK<br>
Date: Thu, 30 Oct 2014 14:16:33 GMT<br>
Server: OpenCms/9.0.1<br>
X-FRAME-OPTIONS: SAMEORIGIN<br>
Cache-Control: no-cache<br>
Pragma: no-cache<br>
Expires: 0<br>
X-UA-Compatible: IE=Edge,chrome=1<br>
Last-Modified: Wed, 29 Oct 2014 13:39:22 GMT<br>
Content-Type: application/pdf<br>
Content-Length: 73340<br>
Via: 1.1 <server><br>
Keep-Alive: timeout=15, max=100<br>
Connection: Keep-Alive<br>
<br>
<br>
The only workaround that works currently is: setting the export property
to true <br>
the response header is then:<br>
<br>
HTTP/1.1 200 OK<br>
Date: Thu, 30 Oct 2014 15:08:17 GMT<br>
Server: Apache-Coyote/1.1<br>
X-FRAME-OPTIONS: SAMEORIGIN<br>
Cache-Control: no-cache<br>
Pragma: no-cache<br>
Expires: 0<br>
X-UA-Compatible: IE=Edge,chrome=1<br>
Accept-Ranges: bytes<br>
ETag: W/"1793087-1414681257762"<br>
Last-Modified: Thu, 30 Oct 2014 15:00:57 GMT<br>
Content-Type: application/pdf<br>
Content-Length: 1793087<br>
Via: 1.1 slaweb01.atriumberlin.de<br>
Keep-Alive: timeout=15, max=100<br>
Connection: Keep-Alive<br>
<br>
But this can't be the final solution because, this document would be downloadable
without cmslogin<br>
<br>
The none working manifest.xml section is:<br>
                
                 <file><br>
                
                 
               
<source>sites/default/cnt/home/<path>/<filename></source><br>
                
                 
               
<destination>sites/default/cnt/home/<path>/<filename></destination><br>
                
                 
               
<type>binary</type><br>
                
                 
               
<uuidstructure>fd7e5bcd-5f70-11e4-88e4-f01faf26b604</uuidstructure><br>
                
                 
               
<uuidresource>fd7e5bce-5f70-11e4-88e4-f01faf26b604</uuidresource><br>
                
                 
               
<datelastmodified>Thu, 30 Oct 2014 14:58:34 GMT</datelastmodified><br>
                
                 
               
<userlastmodified>tkluge</userlastmodified><br>
                
                 
               
<datecreated>Wed, 29 Oct 2014 13:39:22 GMT</datecreated><br>
                
                 
               
<usercreated>tkluge</usercreated><br>
                
                 
               
<flags>0</flags><br>
                
                 
               
<properties><br>
                
                 
               
                 <property><br>
                
                 
               
                 
               
<name>Title</name><br>
                
                 
               
                 
               
<value><![CDATA[Download of File]]></value><br>
                
                 
               
                 </property><br>
                
                 
               
                 <property><br>
                
                 
               
                 
               
<name>export</name><br>
                
                 
               
                 
               
<value><![CDATA[false]]></value><br>
                
                 
               
                 </property><br>
                
                 
               
</properties><br>
                
                 
               
<relations/><br>
                
                 
               
<accesscontrol/><br>
                
                 </file><br>
<br>
<br>
The filesize is 73340<br>
<br>
The effect is an empty page with that src content:<br>
                
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><br>
                
<HTML><HEAD><br>
                
<META content="text/html; charset=windows-1252" http-equiv=Content-Type></HEAD><br>
                
<BODY></BODY></HTML><br>
<br>
If I press F12 in the download page, the document mode is Quirks.<br>
<br>
Any help?<br>
Thanks Thomas<br>
<br>
------------------------------<br>
<br>
Message: 3<br>
Date: Thu, 30 Oct 2014 22:13:00 +0100<br>
From: "Filip Kratochvil" <filip.kratochvil@nelasoft.cz><br>
To: "The OpenCms mailing list" <opencms-dev@opencms.org><br>
Subject: [opencms-dev] Using of SOLR timezone parameter<br>
Message-ID: <015c01cff486$4ad48370$e07d8a50$@nelasoft.cz><br>
Content-Type: text/plain; charset="iso-8859-2"<br>
<br>
Hi guys,<br>
<br>
 <br>
<br>
we would like to change Timezone in the SOLR query by TZ parameter, but
it<br>
doesn?t have any effect and we can?t take results.<br>
<br>
 <br>
<br>
Wiki:<br>
<br>
</font></tt><a href="https://cwiki.apache.org/confluence/display/solr/Working+with+Dates"><tt><font size=2>https://cwiki.apache.org/confluence/display/solr/Working+with+Dates</font></tt></a><tt><font size=2><br>
<br>
 <br>
<br>
Part of the query:<br>
<br>
. &fq=CurrentDate_cs_mdt:[2014-01-21T17:00:00Z TO<br>
2014-01-22T17:00:00Z]&TZ=Europe/Prague .<br>
<br>
 <br>
<br>
Datetime in the xmlcontent have this value:<br>
<br>
2014-01-21T17:00:00Z<br>
<br>
 <br>
<br>
But i see datetimei n the SOLR index have this value:<br>
<br>
2014-01-21T16:00:00Z<br>
<br>
 <br>
<br>
So in the real is here +1 hour time warp (depends on server settings???).
I<br>
think it?s regular because dates in the SOLR  are stored in the UTC.
But for<br>
the regular results should be possible to use TZ parameter, but using it<br>
don?t have any effect.<br>
<br>
 <br>
<br>
When we use query with -1HOUR correction, we take results:<br>
<br>
. &fq=CurrentDate_cs_mdt:[2014-01-21T17:00:00Z-1HOUR TO<br>
2014-01-22T17:00:00Z] .<br>
<br>
 <br>
<br>
Or I'm wrong?<br>
<br>
 <br>
<br>
Thank you very much for the help and hope to see you at OpenCms Days 2014.<br>
<br>
 <br>
<br>
--<br>
Regards<br>
Filip Kratochvil<br>
------------------------------------------------<br>
NELASOFT Technologies, s.r.o.<br>
E-mail:  <</font></tt><a href=mailto:filip.kratochvil@nelasoft.cz><tt><font size=2>mailto:filip.kratochvil@nelasoft.cz</font></tt></a><tt><font size=2>>
filip.kratochvil@nelasoft.cz<br>
Web:  <</font></tt><a href=http://www.nelasoft.cz/><tt><font size=2>http://www.nelasoft.cz</font></tt></a><tt><font size=2>>
</font></tt><a href=www.nelasoft.cz><tt><font size=2>www.nelasoft.cz</font></tt></a><tt><font size=2><br>
<br>
 <br>
<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <</font></tt><a href="http://lists.opencms.org/pipermail/opencms-dev/attachments/20141030/c9b8c14c/attachment-0001.html"><tt><font size=2>http://lists.opencms.org/pipermail/opencms-dev/attachments/20141030/c9b8c14c/attachment-0001.html</font></tt></a><tt><font size=2>><br>
<br>
------------------------------<br>
<br>
Message: 4<br>
Date: Fri, 31 Oct 2014 11:39:26 +0100<br>
From: Paul-Inge Flakstad <flakstad@npolar.no><br>
To: The OpenCms mailing list <opencms-dev@opencms.org><br>
Subject: Re: [opencms-dev] How to add pdf,doc,ppt file into category<br>
Message-ID:<br>
                
<4D405B4872E4E54A95966E6CF909E7F34C0D52D8B6@ANTON.nett.npolar><br>
Content-Type: text/plain; charset="us-ascii"<br>
<br>
Hi Manoj,<br>
<br>
How to assign categories for any file in OpenCms:<br>
Right-click the file (or click the file's icon) to open the context menu<br>
  -> Select "Relations"<br>
    -> Select "Assign categories"<br>
<br>
As for "making them available using functions like articles",
I'm not sure what you mean, but check out CmsCategoryService - in particular
its readCategoryResources(...) methods:<br>
</font></tt><a href=http://files.opencms.org/javadoc/core/org/opencms/relations/CmsCategoryService.html><tt><font size=2>http://files.opencms.org/javadoc/core/org/opencms/relations/CmsCategoryService.html</font></tt></a><tt><font size=2><br>
<br>
HTH,<br>
Paul<br>
<br>
From: opencms-dev-bounces@opencms.org [</font></tt><a href="mailto:opencms-dev-bounces@opencms.org"><tt><font size=2>mailto:opencms-dev-bounces@opencms.org</font></tt></a><tt><font size=2>]
On Behalf Of Manoj.Sharma@nevagroup.com<br>
Sent: 27. oktober 2014 13:58<br>
To: opencms-dev@opencms.org<br>
Subject: [opencms-dev] How to add pdf,doc,ppt file into category<br>
<br>
Hi All,<br>
           How to assign category to pdf, docs,
ppt,excel etc file and make theme available using functions like articles.<br>
<br>
with regards<br>
Manoj Kumar Sharma<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <</font></tt><a href="http://lists.opencms.org/pipermail/opencms-dev/attachments/20141031/5daab79a/attachment-0001.html"><tt><font size=2>http://lists.opencms.org/pipermail/opencms-dev/attachments/20141031/5daab79a/attachment-0001.html</font></tt></a><tt><font size=2>><br>
<br>
------------------------------<br>
<br>
_______________________________________________<br>
This mail is sent to you from the opencms-dev mailing list<br>
To change your list options, or to unsubscribe from the list, please visit<br>
</font></tt><a href="http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev"><tt><font size=2>http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev</font></tt></a><tt><font size=2><br>
<br>
End of opencms-dev Digest, Vol 157, Issue 5<br>
*******************************************<br>
</font></tt>
<br>