<HTML>
<p>Hi,<font face="Arial, Helvetica, sans-serif"> j</font>ust an addition:</p><p>http://localhost:8080/opencms/opencms/handleSolrSelect?<strong>fq=type:v8flower&fq=parent-folders:/&fq=con_locales:*</strong></p><p>Calling this URL on a default OpenCms installation will show the Solr result and you will find a line like:</p><p><span style="color: rgb(136, 18, 128); font-family: monospace; font-size: 13px;"><result</span><span class="webkit-html-attribute" style="color: rgb(136, 18, 128); font-family: monospace; font-size: 13px;"> <span class="webkit-html-attribute-name">name</span>="<span class="webkit-html-attribute-value">response</span>"</span><span class="webkit-html-attribute" style="color: rgb(136, 18, 128); font-family: monospace; font-size: 13px;"> <span class="webkit-html-attribute-name">numFound</span>="<span class="webkit-html-attribute-value">34</span>"</span><span class="webkit-html-attribute" style="color: rgb(136, 18, 128); font-family: monospace; font-size: 13px;"> <span class="webkit-html-attribute-name">start</span>="<span class="webkit-html-attribute-value">0</span>"</span><span style="color: rgb(136, 18, 128); font-family: monospace; font-size: 13px;">></span></p><p>that means that you have 34 resources of the type 'v8flower', whereby the type is the resource type name declared inside the manifest.xml of your module or inside the opencms-modules.xml.</p><p>HTH</p><p>On Thu 14/03/13 10:43 AM , Arturo Martín Lladó <arturo.martin.llado@gmail.com> wrote:</p><blockquote style="BORDER-LEFT: #5167C6 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px; PADDING-LEFT: 5px; PADDING-RIGHT: 0px">Hi, Jaime:<br /> <br /> Are you able to, fisrt of all, obtain every type defined on your<br /> OpenCms installations via OpenCms API?<br /> If you are able to do so, you could perform a Solr search and,<br /> iterating over the results and checking the type of each one, count<br /> them.<br /> <br /> Regards,<br /> <br /> --<br /> Arturo Martín Lladó<br /><br /> 2013/3/14 Moret-Tan Bee Bee <<a href="javascript:top.opencompose('moret_bee@yahoo.com','','','1')">moret_bee@yahoo.com</a>>:<br /> <font color="#666666">> Hi,</font><br /> <font color="#666666">> We'd like to get the number of resources per resource type in OpenCMS.</font><br /> <font color="#666666">> How to do so?</font><br /> <font color="#666666">> Regards,</font><br /> <font color="#666666">> Jaime</font><br /> </blockquote><p> </p><BR><hr />Message sent via Atmail Open - http://atmail.org/</HTML>