[ 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/ -> no_more_node_in_pagelayout.txt (source)

   1  *Title: No more $node variable in pagelayout.
   2  
   3  *Documentation:
   4  Global $node variable only exists in pagelayout template if it was set
   5  by any other module which has run before fetching pagelayout template
   6  and viewcache is disabled. Thus it is removed from pagelayout at all to
   7  do not cause any confusions henceforth.
   8  $module_result.node_id should be used to fetch current operated node in
   9  a pagelayout template. Or you can pass any node id you need to fetch
  10  through 'module_result' array from your own module to pagelayout as it
  11  is shown in example below:
  12  
  13  ==============================
  14  //// your_module.php file
  15  ...
  16  $Result['some_node_id'] = $anyNodeIdYouNeed;
  17  ...
  18  
  19  ===============================
  20  //// pagelayout.tpl file
  21  ...
  22  {def $somenode = fetch( content, node, hash( node_id, $module_result.some_node_id ) )}
  23      ...
  24      {$somenode}
  25      ...


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