[opencms-dev] collectors and collector params

Tim Daschner timd at thedoleco.com
Fri Mar 26 04:38:20 CET 2010


I think you are surely right on the second count. I am not aware about the
duplicate resource type and will try it out when i get a chance. Thanks!

On Thu, Mar 25, 2010 at 6:36 AM, Paul-Inge Flakstad <flakstad at npolar.no>wrote:

>  Hi Sachin
>
> Somebody correct me if I'm wrong, but resource names, as well as IDs,
> should be unique. I don't know exactly what will happen if you have two
> resource types with the same name, but I suspect that either:
>
> 1.) OpenCms will fail at startup, producing an error
> OR
> 2.) The duplicate name problem is simply ignored, and every time a resource
> type is fetched by name, the first one encountered by the code logic is
> returned
>
> Furthermore, if I remember correctly, you don't need to specify a resource
> type name as a collector parameter - the resource type ID can be used
> instead.
>
> HTH,
> Paul
>
>  ------------------------------
> *From:* opencms-dev-bounces at opencms.org [mailto:
> opencms-dev-bounces at opencms.org] *On Behalf Of *Sachin Dole
> *Sent:* 24. mars 2010 23:23
>
> *To:* opencms-dev at opencms.org
> *Subject:* [opencms-dev] collectors and collector params
>
> Hello!
>
> This is about content collectors in opencms. For the parameters on a
> collector, we need to specify a resource type name. So, one could specify
> something like "Article" or "Page" or whatever resource type one has on
> their site. for example, a parameter could look like
> "/sites/mysite/articles|Article|5" where the number 5 denotes number of
> results to return. My question is what happens if there is another resource
> type with the same name in another site that has a different resource type
> id?
>
> I am trying to look into the source code to figure this out, but havent had
> much luck so far. Your help will be appreciated.
>
> Thank you,
> Sachin
>
>
>
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://lists.opencms.org/mailman/listinfo/opencms-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20100325/d32e5120/attachment.htm>


More information about the opencms-dev mailing list