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