<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.16981" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=060502411-25032010><FONT face=Arial
color=#0000ff size=2>Hi Sachin</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=060502411-25032010><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=060502411-25032010><FONT face=Arial
color=#0000ff size=2>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:</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=060502411-25032010><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=060502411-25032010><FONT face=Arial
color=#0000ff size=2>1.) OpenCms will fail
at startup, producing an error </FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=060502411-25032010><FONT face=Arial
color=#0000ff size=2>OR</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=060502411-25032010></SPAN><SPAN
class=060502411-25032010><FONT face=Arial color=#0000ff size=2>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</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=060502411-25032010><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=060502411-25032010><FONT face=Arial
color=#0000ff size=2>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.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=060502411-25032010><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=060502411-25032010><FONT face=Arial
color=#0000ff size=2>HTH,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=060502411-25032010><FONT face=Arial
color=#0000ff size=2>Paul</FONT></SPAN></DIV><BR>
<BLOCKQUOTE
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> opencms-dev-bounces@opencms.org
[mailto:opencms-dev-bounces@opencms.org] <B>On Behalf Of </B>Sachin
Dole<BR><B>Sent:</B> 24. mars 2010 23:23<BR><B>To:</B>
opencms-dev@opencms.org<BR><B>Subject:</B> [opencms-dev] collectors and
collector params<BR></FONT><BR></DIV>
<DIV></DIV>Hello!<BR><BR>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?<BR><BR>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.<BR><BR>Thank
you,<BR>Sachin<BR></BLOCKQUOTE></BODY></HTML>