Project

General

Profile

Actions

Bug(バグ) #3293

open

OpenPNE 3.8 pc module.ymlでnavを設定しても反映されない

Added by 光 野澤 about 12 years ago. Updated almost 5 years ago.

Status:
New(新規)
Priority:
Normal(通常)
Assignee:
-
Target version:
Start date:
2013-01-11
Due date:
% Done:

0%

Estimated time:
3.6 で発生するか:
Unknown (未調査)
3.8 で発生するか:
Unknown (未調査)

Description

現象 

OpenPNE 3.8 pc module.ymlでnavを設定しても反映されない

詳細

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);

転載元

このバグチケットは、以下の報告の転載です。
gist.github.com/2843743

Actions #1

Updated by 光 野澤 about 12 years ago

  • Description updated (diff)
Actions #2

Updated by 光 野澤 about 12 years ago

  • Description updated (diff)
Actions #3

Updated by kaoru n almost 5 years ago

  • Target version set to OpenPNE 3.10.x
Actions

Also available in: Atom PDF