[opencms-dev] Differentiating between siblings

Jonathan Woods jonathan.woods at scintillance.com
Mon Jan 15 17:04:04 CET 2007


I guess that's the way to go - thanks, Christian and Carl.

Jon 

-----Original Message-----
From: sfdbfoui at host2.scintillance.com
[mailto:sfdbfoui at host2.scintillance.com] On Behalf Of Christian Steinert
Sent: 15 January 2007 15:52
To: The OpenCms mailing list
Subject: RE: [opencms-dev] Differentiating between siblings

Hi Jonathan,

Siblings are just file headers that point to shared content. As any sibling
may be deleted at any time, but the content will remain until the last
sibling is deleted, there is no way to avoid this (this is just like
hardlinks in Unix filesystems).

Like Carl I also think, you would have to use properties to either mark your
"original" or to mark your "copies" or to make your copies "point" to the
original. 

christian




> The API doesnt explicitly do it - all siblings are equal.
> 
>  
> 
> If you want one of them to be more equal than the others you could use 
> a property to indicate which sibling is
> 
> the "original".
> 
>  
> 
> Either use a property as a token, where the sibling having the token 
> is the "original" or use a shared property
> 
> indicating the path of the "original"
> 
>  
> 
> Cheers,
> 
>  
> 
> Carl
>  
> -----Original Message-----
> From: opencms-dev-bounces at opencms.org@KB On Behalf Of "Jonathan Woods" 
> <jonathan.woods at scintillance.com>
> Sent: Monday, January 15, 2007 10:09 AM
> To: 'The OpenCms mailing list'
> Subject: [opencms-dev] Differentiating between siblings
> 
>  
> I have several cases in which I need to create a resource and then a
sibling of it elsewhere, but need to treat the original resource as the
'main' one (because I need to de-duplicate search results but use the
resource with a canonical navigation path).  Does the API provide any way to
do this?  I can't find one.
>  
>  
>  
> I realise it's possible to tell how many siblings a resource has, and even
what they are (woo-hoo!), but sibling resources seem to be treated entirely
symmetrically.
>  
>  
>  
> Jon
> 
> -----------------------------------------------------------------
> _______________________________________________
> 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
> 


_______________________________________________________________________
Viren-Scan für Ihren PC! Jetzt für jeden. Sofort, online und kostenlos.
Gleich testen! http://www.pc-sicherheit.web.de/freescan/?mc=022222


_______________________________________________
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





More information about the opencms-dev mailing list