<!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.2900.2963" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=736232509-20092006><FONT face=Arial 
color=#0000ff size=2>Radu -</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=736232509-20092006><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=736232509-20092006><FONT face=Arial 
color=#0000ff size=2>The CmsObject class has a useful method readSiblings(String 
resourceName, CmsResourceFilter filter) which returns a list of all siblings of 
a resource.  The list is a List of CmsResources, and includes the resource 
corresponding to resourceName (a String which is the site-relative path to the 
resource concerned).</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=736232509-20092006><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=736232509-20092006><FONT face=Arial 
color=#0000ff size=2>Best way to get familiar with what the OpenCms Java API 
offers you is to integrate it into your favourite development environment.  
Or you can browse Javadoc at e.g. <A 
href="http://www.opencms.org/export/javadoc/core/index.html">http://www.opencms.org/export/javadoc/core/index.html</A>.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=736232509-20092006><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=736232509-20092006><FONT face=Arial 
color=#0000ff size=2>Jon</FONT></SPAN><BR></DIV>
<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>Radu 
Sora<BR><B>Sent:</B> 20 September 2006 09:39<BR><B>To:</B> 
opencms-dev@opencms.org<BR><B>Subject:</B> [opencms-dev] Determine Siblings - 
Multilingual Site<BR></FONT><BR></DIV>
<DIV></DIV>Hello,<BR><BR>I am trying to build a multilingual site with OpenCMS 
6.2. So far I created different folders for each language, and set the default 
locale for each. I also created siblings in each language folder for each 
resource. Considering i want to have different URLs for each language (and not 
follow a naming convension like file_en, file_de etc.), to make the language 
switcher I have to be able to determine all the siblings for file. <BR><BR>For 
example, let's consider the following folder tree:<BR><BR>/en/ (default locale 
set on en)<BR>   school.html<BR>/fr (default locale set on 
fr)<BR>   ecole.html (sibling -> /en/school.html)<BR><BR>What i 
need is a method to programmatically determine the list of sibling for a 
specified resource, so i can put the language switch on all pages. <BR><BR>Any 
clue?<BR><BR>Thank you,<BR>Radu<BR><BR></BODY></HTML>