[opencms-dev] collectors and collector params
Paul-Inge Flakstad
flakstad at npolar.no
Thu Mar 25 12:36:06 CET 2010
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20100325/8623f9a2/attachment.htm>
More information about the opencms-dev
mailing list