<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 12 (filtered medium)"><!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@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";}
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;}
p
{mso-style-priority:99;
mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
tt
{mso-style-priority:99;
font-family:"Courier New";}
span.EmailStyle19
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 70.85pt 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]--></head><body lang=NO-BOK link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Hi again,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>I think <cms:contentload ...> is limited to loading XML content (“structured content”), and binary files like PDFs are of course not XML content.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Personally I prefer scriptlet code over expression language, and in the past I’ve just utilized the CmsCategoryService#readCategoryResources() methods for what you’re trying to accomplish. <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Something like this (from memory and simplified - not tested!):<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><%<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>CmsJspActionElement cms = new CmsJspActionElement (pageContext, request, response);<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>CmsObject cmso = cms.getCmsObject();<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>// Get the category service instance<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>CmsCategoryService cs = CmsCategoryService.getInstance();<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>// Get resources assigned a specific category. (You could also provide a CmsResourceFilter here.)<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>List<CmsResource> categoryResources = readCategoryResources(cmso, ”/_categories/mycategory/”, true, “/”);<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>// First check if there is something to work with<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>if (!categoryResources.isEmpty()) {<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>%><o:p></o:p></span></p><p class=MsoNormal style='margin-left:35.4pt'><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><ul><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><%<o:p></o:p></span></p><p class=MsoNormal style='margin-left:35.4pt'><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Iterator<CmsResource> i = categoryResources.iterator();<o:p></o:p></span></p><p class=MsoNormal style='margin-left:35.4pt'><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>while (i.hasNext) {<o:p></o:p></span></p><p class=MsoNormal style='margin-left:35.4pt'><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'> CmsResource r = i.next();<o:p></o:p></span></p><p class=MsoNormal style='margin-left:35.4pt'><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'> <o:p></o:p></span></p><p class=MsoNormal style='margin-left:35.4pt;text-indent:35.4pt'><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>// Here, you could check the file type ID and/or file extension, and do something <o:p></o:p></span></p><p class=MsoNormal style='margin-left:35.4pt'><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'> // based on that info. For example, you could group PDF and DOC files separately, or <o:p></o:p></span></p><p class=MsoNormal style='margin-left:35.4pt;text-indent:35.4pt'><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>// discard all files other than PDFs, and so on.<o:p></o:p></span></p><p class=MsoNormal style='margin-left:35.4pt;text-indent:35.4pt'><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal style='margin-left:35.4pt'><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'> String uri = cmso.getSitePath(r); <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>%><o:p></o:p></span></p><p class=MsoNormal style='margin-left:70.8pt'><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><li><a href=”<%= cms.link(uri) %>”><%= cms.property(CmsPropertyDefinition.PROPERTY_TITLE, uri, uri) %></a></li><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><%<o:p></o:p></span></p><p class=MsoNormal style='margin-left:35.4pt'><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>}<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>%><o:p></o:p></span></p><p class=MsoNormal style='margin-left:35.4pt'><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'></ul><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><%<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>} else {<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>%><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'> <p>No resources in this category</p><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><%<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>}<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>%><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Regarding your config question; just send it to the mailing list, and I’m sure you’ll get an answer. :)<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Cheers,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Paul<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>PS: Please keep the subject line intact when replying to the mailing list.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> opencms-dev-bounces@opencms.org [mailto:opencms-dev-bounces@opencms.org] <b>On Behalf Of </b>Manoj.Sharma@nevagroup.com<br><b>Sent:</b> 31. oktober 2014 13:20<br><b>To:</b> opencms-dev@opencms.org<br><b>Subject:</b> Re: [opencms-dev] opencms-dev Digest, Vol 157, Issue 5<o:p></o:p></span></p></div><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>Hi </span><tt><span style='font-size:10.0pt'>Paul</span></tt><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>,</span> <br><span style='font-size:10.0pt;font-family:"Arial","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:</span> <br><br><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'> <ul></span> <br><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'> <%-- Define a Solr query --%></span> <br><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'> <c:set var="solrQuery">&fq=categoryTypes=testcategory&sort=created asc</c:set></span> <br><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'> <%-- Define a create path --%></span> <br><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'> <c:set var="createPath">my-article-templates/.content/articles/</c:set></span> <br><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'> <%-- Collect the resources --%></span> <br><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'> <cms:contentload collector="byContext" param="${solrQuery}|createPath=&{createPath}" preload="true" ></span> <br><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'> <cms:contentinfo var="info" /></span> <br><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'> </span><br><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'> <c:if test="${info.resultSize > 0}"></span> <br><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'> <cms:contentload editable="true"></span> <br><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'> <cms:contentaccess var="content" /></span> <br><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'> <li class="article-li"></span> <br><span style='font-size:10.0pt;font-family:"Arial","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></span> <br><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'> <%--<p>${content.value.Text}</p>--%></span> <br><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'> </li></span> <br><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'> </cms:contentload></span> <br><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'> </c:if></span> <br><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'> <%-- <c:if test="${info.resultSize == 0}"></span> <br><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'> Nothing found for query:<br/><em>${solrQuery}</em></span> <br><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'> </c:if> --%></span> <br><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'> </cms:contentload></span> <br><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'> </ul></span> <br><br><span style='font-size:10.0pt;font-family:"Arial","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.</span> <br><br><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>With Regards</span> <br><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>Manoj Kumar Sharma</span> <o:p></o:p></p><p style='margin-bottom:12.0pt'><o:p> </o:p></p><table class=MsoNormalTable border=0 cellpadding=0 width="100%" style='width:100.0%'><tr><td style='padding:.75pt .75pt .75pt .75pt'></td><td width="100%" style='width:100.0%;padding:.75pt .75pt .75pt .75pt'><table class=MsoNormalTable border=0 cellpadding=0 width="100%" style='width:100.0%'><tr><td width="100%" valign=top style='width:100.0%;padding:.75pt .75pt .75pt .75pt'><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>opencms-dev Digest, Vol 157, Issue 5</span></b><o:p></o:p></p></td></tr></table><p class=MsoNormal><o:p> </o:p></p><table class=MsoNormalTable border=0 cellpadding=0 width="100%" style='width:100.0%'><tr><td style='padding:.75pt .75pt .75pt .75pt'><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:#E26200'>opencms-dev-request </span></b><o:p></o:p></p></td><td style='padding:.75pt .75pt .75pt .75pt'><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:#8F8F8F'>to:</span> <o:p></o:p></p></td><td style='padding:.75pt .75pt .75pt .75pt'><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>opencms-dev</span> <o:p></o:p></p></td><td style='padding:.75pt .75pt .75pt .75pt'><p class=MsoNormal align=right style='text-align:right'><span style='font-size:7.5pt;font-family:"Arial","sans-serif"'>10/31/2014 04:32 PM</span><o:p></o:p></p></td></tr></table><p class=MsoNormal><o:p> </o:p></p><table class=MsoNormalTable border=0 cellpadding=0 width="100%" style='width:100.0%'><tr><td style='padding:.75pt .75pt .75pt .75pt'><table class=MsoNormalTable border=0 cellpadding=0 width="100%" style='width:100.0%'><tr><td style='padding:.75pt .75pt .75pt .75pt'><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:#8F8F8F'>Sent by:</span> <o:p></o:p></p></td><td width="100%" style='width:100.0%;padding:.75pt .75pt .75pt .75pt'><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:#E26200'><a href="mailto:opencms-dev-bounces@opencms.org">opencms-dev-bounces@opencms.org</a></span></b><o:p></o:p></p></td></tr></table><p class=MsoNormal><br><b><span style='font-size:7.5pt;font-family:"Arial","sans-serif"'>Please respond to opencms-dev</span></b> <o:p></o:p></p></td><td style='padding:.75pt .75pt .75pt .75pt'></td></tr></table></td></tr></table><p style='margin-bottom:12.0pt'><o:p> </o:p></p><div class=MsoNormal align=center style='text-align:center'><hr size=2 width="100%" align=center></div><p class=MsoNormal style='margin-bottom:12.0pt'><br><br><br><tt><span style='font-size:10.0pt'>Send opencms-dev mailing list submissions to</span></tt><span style='font-size:10.0pt;font-family:"Courier New"'><br><tt> <a href="mailto:opencms-dev@opencms.org">opencms-dev@opencms.org</a></tt><br><br><tt>To subscribe or unsubscribe via the World Wide Web, visit</tt><br><tt> </tt></span><a href="http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev"><tt><span style='font-size:10.0pt'>http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev</span></tt></a><span style='font-size:10.0pt;font-family:"Courier New"'><br><tt>or, via email, send a message with subject or body 'help' to</tt><br><tt> <a href="mailto:opencms-dev-request@opencms.org">opencms-dev-request@opencms.org</a></tt><br><br><tt>You can reach the person managing the list at</tt><br><tt> <a href="mailto:opencms-dev-owner@opencms.org">opencms-dev-owner@opencms.org</a></tt><br><br><tt>When replying, please edit your Subject line so it is more specific</tt><br><tt>than "Re: Contents of opencms-dev digest..."</tt><br><br><br><tt>Today's Topics:</tt><br><br><tt> 1. Re: Is CSS and JS optimization coming to cms:headIncludes in</tt><br><tt> OpenCms 9.5? (Alessandro Magnolo)</tt><br><tt> 2. OpenCMS 8/9 PDF Link IE8 not working (<a href="mailto:T.Kluge@t-systems.com">T.Kluge@t-systems.com</a>)</tt><br><tt> 3. Using of SOLR timezone parameter (Filip Kratochvil)</tt><br><tt> 4. Re: How to add pdf,doc,ppt file into category (Paul-Inge Flakstad)</tt><br><br><br><tt>----------------------------------------------------------------------</tt><br><br><tt>Message: 1</tt><br><tt>Date: Thu, 30 Oct 2014 13:47:35 +0100</tt><br><tt>From: Alessandro Magnolo <<a href="mailto:alessandro.magnolo@gmail.com">alessandro.magnolo@gmail.com</a>></tt><br><tt>To: The OpenCms mailing list <<a href="mailto:opencms-dev@opencms.org">opencms-dev@opencms.org</a>></tt><br><tt>Subject: Re: [opencms-dev] Is CSS and JS optimization coming to</tt><br><tt> cms:headIncludes in OpenCms 9.5?</tt><br><tt>Message-ID:</tt><br><tt> <<a href="mailto:CA+GGvz_afgQiTEBEU3BwwuVVq74-vqGwdkG1TgE1+YzVLDMyxQ@mail.gmail.com">CA+GGvz_afgQiTEBEU3BwwuVVq74-vqGwdkG1TgE1+YzVLDMyxQ@mail.gmail.com</a>></tt><br><tt>Content-Type: text/plain; charset=UTF-8</tt><br><br><tt>Hello Christian,</tt><br><tt>in case you're interested, at the next OpenCms days we'll present a</tt><br><tt>module that, amongst other things, does automatic CSS and JS</tt><br><tt>minification.</tt><br><tt>This is the session:</tt><br></span><a href="http://www.opencms-days.org/news/Enhancing-OpenCms-front-end-development-with-Sass-and-Grunt/"><tt><span style='font-size:10.0pt'>http://www.opencms-days.org/news/Enhancing-OpenCms-front-end-development-with-Sass-and-Grunt/</span></tt></a><span style='font-size:10.0pt;font-family:"Courier New"'><br><br><tt>Regards,</tt><br><tt>Alessandro Magnolo</tt><br><br><tt>On Fri, Sep 19, 2014 at 10:31 PM, Christian Bj?rnbak</tt><br><tt><<a href="mailto:cbj@touristonline.dk">cbj@touristonline.dk</a>> wrote:</tt><br><tt>> Hi</tt><br><tt>></tt><br><tt>> I'm wondering if CSS and JS optimization will be built in to</tt><br><tt>> cms:headIncludes in OpenCms 9.5?</tt><br><tt>></tt><br><tt>> The WebOptimization v8 module does a similar job but we can't make it work</tt><br><tt>> in OpenCms 9.0.1.</tt><br><tt>></tt><br><tt>> Besides the cms:headIncludes has the new feature of dynamically collecting</tt><br><tt>> CSS and JS to add in the <head>.</tt><br><tt>></tt><br><tt>> It would be natural to add the option to optimize the CSS and JS by merging</tt><br><tt>> the content of the files into one and minify it.</tt><br><tt>></tt><br><tt>> And further could headIncludes be expanded to be able to load the files</tt><br><tt>> asynchronously.</tt><br><tt>></tt><br><tt>> Is Alkacon or anybody else working on such improvements?</tt><br><tt>></tt><br><tt>> Are they going to be part of or ready around OpenCms 9.5?</tt><br><tt>></tt><br><tt>></tt><br><tt>> Med venlig hilsen / Kind regards,</tt><br><tt>></tt><br><tt>> Christian Bj?rnbak</tt><br><tt>></tt><br><tt>> Chefudvikler / Lead Developer</tt><br><tt>> TouristOnline A/S</tt><br><tt>> Islands Brygge 43</tt><br><tt>> 2300 K?benhavn S</tt><br><tt>> Denmark</tt><br><tt>> TLF: +45 32888230</tt><br><tt>> Dir. TLF: +45 32888235</tt><br><tt>></tt><br><tt>> _______________________________________________</tt><br><tt>> This mail is sent to you from the opencms-dev mailing list</tt><br><tt>> To change your list options, or to unsubscribe from the list, please visit</tt><br><tt>> </tt></span><a href="http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev"><tt><span style='font-size:10.0pt'>http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev</span></tt></a><span style='font-size:10.0pt;font-family:"Courier New"'><br><tt>></tt><br><tt>></tt><br><tt>></tt><br><tt>></tt><br><br><br><tt>------------------------------</tt><br><br><tt>Message: 2</tt><br><tt>Date: Thu, 30 Oct 2014 16:32:38 +0100</tt><br><tt>From: <<a href="mailto:T.Kluge@t-systems.com">T.Kluge@t-systems.com</a>></tt><br><tt>To: <<a href="mailto:opencms-dev@opencms.org">opencms-dev@opencms.org</a>></tt><br><tt>Subject: [opencms-dev] OpenCMS 8/9 PDF Link IE8 not working</tt><br><tt>Message-ID:</tt><br><tt> <<a href="mailto:901586CA8F92D543BFFFD6E1122F5A36027F664BB59E@HE101453.emea1.cds.t-internal.com">901586CA8F92D543BFFFD6E1122F5A36027F664BB59E@HE101453.emea1.cds.t-internal.com</a>></tt><br><tt> </tt><br><tt>Content-Type: text/plain; charset="utf-8"</tt><br><br><tt>Hi all,</tt><br><br><tt>We stuck on a problem that a CMS PDF is not downloadable within IE8 (all other browsers do) from within the cms surflet context.</tt><br><br><tt>The http response header looks like this:</tt><br><br><tt>HTTP/1.1 200 OK</tt><br><tt>Date: Thu, 30 Oct 2014 14:16:33 GMT</tt><br><tt>Server: OpenCms/9.0.1</tt><br><tt>X-FRAME-OPTIONS: SAMEORIGIN</tt><br><tt>Cache-Control: no-cache</tt><br><tt>Pragma: no-cache</tt><br><tt>Expires: 0</tt><br><tt>X-UA-Compatible: IE=Edge,chrome=1</tt><br><tt>Last-Modified: Wed, 29 Oct 2014 13:39:22 GMT</tt><br><tt>Content-Type: application/pdf</tt><br><tt>Content-Length: 73340</tt><br><tt>Via: 1.1 <server></tt><br><tt>Keep-Alive: timeout=15, max=100</tt><br><tt>Connection: Keep-Alive</tt><br><br><br><tt>The only workaround that works currently is: setting the export property to true </tt><br><tt>the response header is then:</tt><br><br><tt>HTTP/1.1 200 OK</tt><br><tt>Date: Thu, 30 Oct 2014 15:08:17 GMT</tt><br><tt>Server: Apache-Coyote/1.1</tt><br><tt>X-FRAME-OPTIONS: SAMEORIGIN</tt><br><tt>Cache-Control: no-cache</tt><br><tt>Pragma: no-cache</tt><br><tt>Expires: 0</tt><br><tt>X-UA-Compatible: IE=Edge,chrome=1</tt><br><tt>Accept-Ranges: bytes</tt><br><tt>ETag: W/"1793087-1414681257762"</tt><br><tt>Last-Modified: Thu, 30 Oct 2014 15:00:57 GMT</tt><br><tt>Content-Type: application/pdf</tt><br><tt>Content-Length: 1793087</tt><br><tt>Via: 1.1 slaweb01.atriumberlin.de</tt><br><tt>Keep-Alive: timeout=15, max=100</tt><br><tt>Connection: Keep-Alive</tt><br><br><tt>But this can't be the final solution because, this document would be downloadable without cmslogin</tt><br><br><tt>The none working manifest.xml section is:</tt><br><tt> <file></tt><br><tt> <source>sites/default/cnt/home/<path>/<filename></source></tt><br><tt> <destination>sites/default/cnt/home/<path>/<filename></destination></tt><br><tt> <type>binary</type></tt><br><tt> <uuidstructure>fd7e5bcd-5f70-11e4-88e4-f01faf26b604</uuidstructure></tt><br><tt> <uuidresource>fd7e5bce-5f70-11e4-88e4-f01faf26b604</uuidresource></tt><br><tt> <datelastmodified>Thu, 30 Oct 2014 14:58:34 GMT</datelastmodified></tt><br><tt> <userlastmodified>tkluge</userlastmodified></tt><br><tt> <datecreated>Wed, 29 Oct 2014 13:39:22 GMT</datecreated></tt><br><tt> <usercreated>tkluge</usercreated></tt><br><tt> <flags>0</flags></tt><br><tt> <properties></tt><br><tt> <property></tt><br><tt> <name>Title</name></tt><br><tt> <value><![CDATA[Download of File]]></value></tt><br><tt> </property></tt><br><tt> <property></tt><br><tt> <name>export</name></tt><br><tt> <value><![CDATA[false]]></value></tt><br><tt> </property></tt><br><tt> </properties></tt><br><tt> <relations/></tt><br><tt> <accesscontrol/></tt><br><tt> </file></tt><br><br><br><tt>The filesize is 73340</tt><br><br><tt>The effect is an empty page with that src content:</tt><br><tt> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"></tt><br><tt> <HTML><HEAD></tt><br><tt> <META content="text/html; charset=windows-1252" http-equiv=Content-Type></HEAD></tt><br><tt> <BODY></BODY></HTML></tt><br><br><tt>If I press F12 in the download page, the document mode is Quirks.</tt><br><br><tt>Any help?</tt><br><tt>Thanks Thomas</tt><br><br><tt>------------------------------</tt><br><br><tt>Message: 3</tt><br><tt>Date: Thu, 30 Oct 2014 22:13:00 +0100</tt><br><tt>From: "Filip Kratochvil" <<a href="mailto:filip.kratochvil@nelasoft.cz">filip.kratochvil@nelasoft.cz</a>></tt><br><tt>To: "The OpenCms mailing list" <<a href="mailto:opencms-dev@opencms.org">opencms-dev@opencms.org</a>></tt><br><tt>Subject: [opencms-dev] Using of SOLR timezone parameter</tt><br><tt>Message-ID: <<a href="mailto:015c01cff486$4ad48370$e07d8a50$@nelasoft.cz">015c01cff486$4ad48370$e07d8a50$@nelasoft.cz</a>></tt><br><tt>Content-Type: text/plain; charset="iso-8859-2"</tt><br><br><tt>Hi guys,</tt><br><br><br><br><tt>we would like to change Timezone in the SOLR query by TZ parameter, but it</tt><br><tt>doesn?t have any effect and we can?t take results.</tt><br><br><br><br><tt>Wiki:</tt><br><br></span><a href="https://cwiki.apache.org/confluence/display/solr/Working+with+Dates"><tt><span style='font-size:10.0pt'>https://cwiki.apache.org/confluence/display/solr/Working+with+Dates</span></tt></a><span style='font-size:10.0pt;font-family:"Courier New"'><br><br><br><br><tt>Part of the query:</tt><br><br><tt>. &fq=CurrentDate_cs_mdt:[2014-01-21T17:00:00Z TO</tt><br><tt>2014-01-22T17:00:00Z]&TZ=Europe/Prague .</tt><br><br><br><br><tt>Datetime in the xmlcontent have this value:</tt><br><br><tt>2014-01-21T17:00:00Z</tt><br><br><br><br><tt>But i see datetimei n the SOLR index have this value:</tt><br><br><tt>2014-01-21T16:00:00Z</tt><br><br><br><br><tt>So in the real is here +1 hour time warp (depends on server settings???). I</tt><br><tt>think it?s regular because dates in the SOLR are stored in the UTC. But for</tt><br><tt>the regular results should be possible to use TZ parameter, but using it</tt><br><tt>don?t have any effect.</tt><br><br><br><br><tt>When we use query with -1HOUR correction, we take results:</tt><br><br><tt>. &fq=CurrentDate_cs_mdt:[2014-01-21T17:00:00Z-1HOUR TO</tt><br><tt>2014-01-22T17:00:00Z] .</tt><br><br><br><br><tt>Or I'm wrong?</tt><br><br><br><br><tt>Thank you very much for the help and hope to see you at OpenCms Days 2014.</tt><br><br><br><br><tt>--</tt><br><tt>Regards</tt><br><tt>Filip Kratochvil</tt><br><tt>------------------------------------------------</tt><br><tt>NELASOFT Technologies, s.r.o.</tt><br><tt>E-mail: <</tt></span><a href="mailto:filip.kratochvil@nelasoft.cz"><tt><span style='font-size:10.0pt'>mailto:filip.kratochvil@nelasoft.cz</span></tt></a><tt><span style='font-size:10.0pt'>> <a href="mailto:filip.kratochvil@nelasoft.cz">filip.kratochvil@nelasoft.cz</a></span></tt><span style='font-size:10.0pt;font-family:"Courier New"'><br><tt>Web: <</tt></span><a href="http://www.nelasoft.cz/"><tt><span style='font-size:10.0pt'>http://www.nelasoft.cz</span></tt></a><tt><span style='font-size:10.0pt'>> </span></tt><a href="www.nelasoft.cz"><tt><span style='font-size:10.0pt'>www.nelasoft.cz</span></tt></a><span style='font-size:10.0pt;font-family:"Courier New"'><br><br><br><br><tt>-------------- next part --------------</tt><br><tt>An HTML attachment was scrubbed...</tt><br><tt>URL: <</tt></span><a href="http://lists.opencms.org/pipermail/opencms-dev/attachments/20141030/c9b8c14c/attachment-0001.html"><tt><span style='font-size:10.0pt'>http://lists.opencms.org/pipermail/opencms-dev/attachments/20141030/c9b8c14c/attachment-0001.html</span></tt></a><tt><span style='font-size:10.0pt'>></span></tt><span style='font-size:10.0pt;font-family:"Courier New"'><br><br><tt>------------------------------</tt><br><br><tt>Message: 4</tt><br><tt>Date: Fri, 31 Oct 2014 11:39:26 +0100</tt><br><tt>From: Paul-Inge Flakstad <<a href="mailto:flakstad@npolar.no">flakstad@npolar.no</a>></tt><br><tt>To: The OpenCms mailing list <<a href="mailto:opencms-dev@opencms.org">opencms-dev@opencms.org</a>></tt><br><tt>Subject: Re: [opencms-dev] How to add pdf,doc,ppt file into category</tt><br><tt>Message-ID:</tt><br><tt> <<a href="mailto:4D405B4872E4E54A95966E6CF909E7F34C0D52D8B6@ANTON.nett.npolar">4D405B4872E4E54A95966E6CF909E7F34C0D52D8B6@ANTON.nett.npolar</a>></tt><br><tt>Content-Type: text/plain; charset="us-ascii"</tt><br><br><tt>Hi Manoj,</tt><br><br><tt>How to assign categories for any file in OpenCms:</tt><br><tt>Right-click the file (or click the file's icon) to open the context menu</tt><br><tt> -> Select "Relations"</tt><br><tt> -> Select "Assign categories"</tt><br><br><tt>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:</tt><br></span><a href="http://files.opencms.org/javadoc/core/org/opencms/relations/CmsCategoryService.html"><tt><span style='font-size:10.0pt'>http://files.opencms.org/javadoc/core/org/opencms/relations/CmsCategoryService.html</span></tt></a><span style='font-size:10.0pt;font-family:"Courier New"'><br><br><tt>HTH,</tt><br><tt>Paul</tt><br><br><tt>From: <a href="mailto:opencms-dev-bounces@opencms.org">opencms-dev-bounces@opencms.org</a> [</tt></span><a href="mailto:opencms-dev-bounces@opencms.org"><tt><span style='font-size:10.0pt'>mailto:opencms-dev-bounces@opencms.org</span></tt></a><tt><span style='font-size:10.0pt'>] On Behalf Of <a href="mailto:Manoj.Sharma@nevagroup.com">Manoj.Sharma@nevagroup.com</a></span></tt><span style='font-size:10.0pt;font-family:"Courier New"'><br><tt>Sent: 27. oktober 2014 13:58</tt><br><tt>To: <a href="mailto:opencms-dev@opencms.org">opencms-dev@opencms.org</a></tt><br><tt>Subject: [opencms-dev] How to add pdf,doc,ppt file into category</tt><br><br><tt>Hi All,</tt><br><tt> How to assign category to pdf, docs, ppt,excel etc file and make theme available using functions like articles.</tt><br><br><tt>with regards</tt><br><tt>Manoj Kumar Sharma</tt><br><tt>-------------- next part --------------</tt><br><tt>An HTML attachment was scrubbed...</tt><br><tt>URL: <</tt></span><a href="http://lists.opencms.org/pipermail/opencms-dev/attachments/20141031/5daab79a/attachment-0001.html"><tt><span style='font-size:10.0pt'>http://lists.opencms.org/pipermail/opencms-dev/attachments/20141031/5daab79a/attachment-0001.html</span></tt></a><tt><span style='font-size:10.0pt'>></span></tt><span style='font-size:10.0pt;font-family:"Courier New"'><br><br><tt>------------------------------</tt><br><br><tt>_______________________________________________</tt><br><tt>This mail is sent to you from the opencms-dev mailing list</tt><br><tt>To change your list options, or to unsubscribe from the list, please visit</tt><br></span><a href="http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev"><tt><span style='font-size:10.0pt'>http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev</span></tt></a><span style='font-size:10.0pt;font-family:"Courier New"'><br><br><tt>End of opencms-dev Digest, Vol 157, Issue 5</tt><br><tt>*******************************************</tt></span><o:p></o:p></p></div></body></html>