Siblings

(Difference between revisions)
Jump to: navigation, search
m
Line 3: Line 3:
  
 
The ''content'' (e.g. a stream of XML data or an image) exists only once and is shared among all siblings. If the content of one is updated through one sibling, then all other siblings that use the same content are also affected.
 
The ''content'' (e.g. a stream of XML data or an image) exists only once and is shared among all siblings. If the content of one is updated through one sibling, then all other siblings that use the same content are also affected.
 +
 +
Reasons for having two or more files with the same content but that may have different properties can be:
 +
* having the same content appear in different places of a website (copying wouldn't propagate changes in the file between copies)
 +
* having the same content behave differently in different places of a website: this is specially useful for multilanguage support, because the same xml file contains all the languages inside it but it's displayed in one or other language depending on the "locale" property.
  
 
Whenever two siblings share the same content, they must also have the same file type.
 
Whenever two siblings share the same content, they must also have the same file type.

Revision as of 11:16, 3 July 2008

Siblings are similar to hard links in unix filesystems. There are two or more filesystem headers in different locations of the filesystem. Each of them has it's own file properties (although in opencms there can also be shared properties that are commonly used by all siblings that share the same content).

The content (e.g. a stream of XML data or an image) exists only once and is shared among all siblings. If the content of one is updated through one sibling, then all other siblings that use the same content are also affected.

Reasons for having two or more files with the same content but that may have different properties can be:

  • having the same content appear in different places of a website (copying wouldn't propagate changes in the file between copies)
  • having the same content behave differently in different places of a website: this is specially useful for multilanguage support, because the same xml file contains all the languages inside it but it's displayed in one or other language depending on the "locale" property.

Whenever two siblings share the same content, they must also have the same file type.

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox