Guest User

Untitled

a guest
Oct 15th, 2018
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.06 KB | None | 0 0
  1. # OpenPNE3/apps/pc_frontend/modules/community/config/module.ymlを見る限り、default_nav: <localNav type> で、
  2. # そのmoduleで標準で使われるlocalNavのtypeを、nav: {<action>: <localNav type>} で、各action毎のlocalNavを
  3. # 設定できるようになっていると期待されるが、実際にはdefault_navしか使われていない。
  4. # 以下のようにコードを加えると、nav: {<action>: <localNav type>} も使用されるようになる。
  5.  
  6. --- OpenPNE3/apps/pc_frontend/modules/default/actions/components.class.php Thu May 31 19:53:52 2012
  7. +++ OpenPNE3/apps/pc_frontend/modules/default/actions/components.class_fix.php Thu May 31 19:55:29 2012
  8. @@ -30,6 +30,7 @@
  9. $action = $context->getActionStack()->getLastEntry()->getActionName();
  10.  
  11. $this->type = sfConfig::get('sf_nav_type', sfConfig::get('mod_' . $module . '_default_nav', 'default'));
  12. + $this->type = sfConfig::get('sf_nav_type', sfConfig::get('mod_' . $module . '_nav_' . $action, $this->type));
  13.  
  14. $this->navs = Doctrine::getTable('Navigation')->retrieveByType($this->type);
Add Comment
Please, Sign In to add comment