<div dir="ltr">Hi Paul, <div><br></div><div style>Didn't know this useful option. <br>Not excatly what I was expecting (not intuitive, as you have to change the date to see futur news), but could solve my problem. </div>
<div style><br></div><div style>Thanks. </div><div style><br></div><div style>LeNouveau</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/7/9 Paul-Inge Flakstad <span dir="ltr"><<a href="mailto:flakstad@npolar.no" target="_blank">flakstad@npolar.no</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
<pre style="font-size:10.0pt;font-family:Tahoma;word-wrap:break-word">Hi LeNouveau,
The OpenCms workplace has a "time warp" feature which enables you to view the site as it would appear at the time you specify there. Possibly this could be of help in your situation?
Cheers,
Paul
Sendt fra min Sony Xperia™-smarttelefon
Le Nouveau <<a href="mailto:opencms@lenouveau.fr" target="_blank">opencms@lenouveau.fr</a>>:
</pre><div><div class="h5">
<div>
<div dir="ltr">Hi,
<div><br>
</div>
<div>First of all, sorry if this mailing is not made to solve my problem, I wasn't sure.</div>
<div>If it's the case, please tell me. </div>
<div><br>
I would like to list all my news, even the non-released ones if I'm connected as an admin. </div>
<div><br>
</div>
<div>Here is my JSP code : </div>
<div>
<div><font color="#0000ff"><cms:contentload collector="byQuery"</font></div>
<div><font color="#0000ff"> param="fq=type:news&sort=collector.date_prop desc|createPath=/.content/news/news_%(number:5).html"</font></div>
<div><font color="#0000ff"> editable="true"</font></div>
<div><font color="#0000ff"> pageSize="${nbResults}"</font></div>
<div><font color="#0000ff"> pageIndex="1"</font></div>
<div><font color="#0000ff"> pageNavLength="${nbResults}"></font></div>
<div><font color="#0000ff"> [...]</font></div>
<div><font color="#0000ff"></cms:contentload></font></div>
<div><font color="#666666"><br>
</font></div>
<div>Here is my XSD code : </div>
<div>
<div><font color="#0000ff"><mapping></font></div>
<div><font color="#0000ff"><span style="white-space:pre-wrap"> </span><mapping element="Date" mapto="property:collector.date"/></font></div>
<div><font color="#0000ff"> <mapping element="Date" mapto="attribute:datereleased"/></font></div>
<div><font color="#0000ff"></mappings></font></div>
<div><br>
</div>
<div><font color="#000000">But the problem with this code, is that it's impossible to display news released in the futur, even as Admin. </font></div>
<div><font color="#000000">According to logs, all news are matched, but once displayed I only have released ones. </font></div>
<div><font color="#000000"><br>
</font></div>
<div><font color="#000000"><br>
</font></div>
<div><font color="#000000"><br>
</font></div>
<div><font color="#000000"><br>
</font></div>
<div><font color="#000000">So, I tried not to mapp "attribute:datereleased".</font></div>
<div><font color="#000000">JSP Code : </font></div>
<div>
<div><font color="#0000ff"><cms:contentload collector="byQuery"</font></div>
<div><font color="#0000ff"> param="fq=type:news&fq=</font><span style="color:rgb(0,0,255)">collector.date_prop:[* TO NOW]&</span><span style="color:rgb(0,0,255)">sort=collector.date_prop desc|createPath=/.content/news/news_%(number:5).html"</span></div>
<div><font color="#0000ff"> editable="true"</font></div>
<div><font color="#0000ff"> pageSize="${nbResults}"</font></div>
<div><font color="#0000ff"> pageIndex="1"</font></div>
<div><font color="#0000ff"> pageNavLength="${nbResults}"></font></div>
<div><font color="#0000ff"> [...]</font></div>
<div><font color="#0000ff"></cms:contentload></font></div>
<div>(As Admin, I use the same request but without "<font color="#000000">collector.date_prop:[* TO NOW]"</font> </div>
<div><br>
</div>
<div><font color="#000000">With in my XSD : </font></div>
<div>
<div><font color="#0000ff"><mapping></font></div>
<div><font color="#0000ff"><span style="white-space:pre-wrap"> </span><mapping element="Date" mapto="property:collector.date"/></font></div>
<div><font color="#0000ff"></mappings></font></div>
<div><br>
</div>
<div><font color="#000000">But this time, collector.date_prop isn't well read : </font></div>
<div><font color="#0000ff">fq=</font><span style="color:rgb(0,0,255)">collector.date_prop:[* TO NOW]
</span><font color="#000000">returns everything (even 1 mounth later)<br>
</font></div>
<div><font color="#0000ff">fq=</font><span style="color:rgb(0,0,255)">collector.date_prop:[* TO NOW]
</span><font color="#000000">returns nothing</font><span style="color:rgb(0,0,255)"><br>
</span></div>
<div><font color="#000000">I imagined it's because of timestamp problems (sometimes in sec, sometimes in millisec), but nothing to prove it. <br>
<br>
<br>
<br>
So, do someone know how to solve my problem ? </font></div>
<div><font color="#000000">What am I doing wrong ? </font></div>
<div><font color="#000000"><br>
</font></div>
<div><font color="#000000">Thanks in advance for help. </font></div>
<div><font color="#000000"><br>
</font></div>
<div><font color="#000000">Regards, <br>
LeNouveau</font></div>
<div><font color="#000000"><br>
</font></div>
<div><font color="#000000">PS : Sorry for my english too ^^</font></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div></div></div>
<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>
<a href="http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev" target="_blank">http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev</a><br>
<br>
<br>
<br>
<br></blockquote></div><br></div>