diff --git a/application/default/controllers/DataController.php b/application/default/controllers/DataController.php index bae1277e..276b4cb5 100755 --- a/application/default/controllers/DataController.php +++ b/application/default/controllers/DataController.php @@ -11,6 +11,11 @@ class DataController extends Zend_Controller_Action $this->view->messages = $this->messenger->getMessages(); $this->view->theme = new Theme(); $this->view->main_nav_pageID = "data"; + + $this->view->nav = array( + array('link'=>'/','title'=>''), + array('link'=>'/data','title'=>$this->view->config->title->data), + ); } function indexAction() { diff --git a/application/default/views/scripts/breadcrumbs.phtml b/application/default/views/scripts/breadcrumbs.phtml index 31f38920..91aa0034 100644 --- a/application/default/views/scripts/breadcrumbs.phtml +++ b/application/default/views/scripts/breadcrumbs.phtml @@ -1,4 +1,11 @@ -getLabel();'), - $this->pages));?> \ No newline at end of file +nav)){ ?> + + \ No newline at end of file diff --git a/application/default/views/scripts/data/doi.phtml b/application/default/views/scripts/data/doi.phtml index ef561b48..7e9e5756 100644 --- a/application/default/views/scripts/data/doi.phtml +++ b/application/default/views/scripts/data/doi.phtml @@ -3,14 +3,12 @@ $this->headTitle($this->config->title->site); $this->headTitle($this->config->title->data); $this->headTitle('DOI浏览'); $this->headTitle()->setSeparator(' - '); -$this->breadcrumb('首页'); -$this->breadcrumb(''.$this->config->title->data.''); -$this->breadcrumb('DOI浏览'); +$this->nav[] = array('link'=>"/data/doi",'title'=>'DOI浏览'); $this->breadcrumb()->setSeparator(' > '); $this->theme->AppendPlus($this,'colorbox'); ?>
-
breadcrumb() ?>
+render('breadcrumbs.phtml') ?> partial('data/tools.phtml'); ?>