[ Index ]
 

Code source de eZ Publish 3.9.0

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/doc/features/3.9/ -> parent_class_match_template_overrides.txt (source)

   1  *Title: Match[parent_class] - new matching way to override templates.
   2  
   3  *Documentation:
   4  New match condition is implemented to override templates by content class
   5  of the parent node for the current viewed node for 'view' function of 'content'
   6  You can set it using any of two new matching keys:
   7  - 'parent_class' used to match by ID of the content class of the parent node;
   8  - 'parent_class_identifier' used to match by class identifier of the content class of the parent node.
   9  
  10  *Example:
  11  
  12  # these two override sections are identical:
  13  # matching by parent_class
  14  [article_override_1]
  15  Source=node/view/full.tpl
  16  MatchFile=your_template_1.tpl
  17  Subdir=templates
  18  Match[parent_class]=1
  19  Match[parent_class_identifier]=folder
  20  
  21  # or matching by parent_class_identifier
  22  [article_override_2]
  23  Source=node/view/full.tpl
  24  MatchFile=your_template_2.tpl
  25  Subdir=templates
  26  Match[parent_class_identifier]=folder


Généré le : Sat Feb 24 10:30:04 2007 par Balluche grâce à PHPXref 0.7