ryancramerdesign/P21 — Issue #73: ProcessPageType module breadcrumbs
Author: ryancramerdesign
Created: 2012-02-03 14:26:23+00:00
State: open

Issue report from Achabany in the forums:

Hello, i am new to the forum, first i want to thank you ryan and all of you guys for this great app i have just found an issue with the translation system : the breadcrumb for the "users", "roles" and "permissions" will turn you every time to the access page wich is not correct. The problem come from this pageType module :

public function init() {
$this->config->scripts->add($this->config->urls->ProcessPageType . 'ProcessPageType.js');
$this->config->styles->add($this->config->urls->ProcessPageType . 'ProcessPageType.css');
$this->fuel->breadcrumbs->add(new Breadcrumb('../', $this->page->get('title|name')));
$this->pages = $this->fuel($this->page->name);
if(is_null($this->pages)) $this->pages = $this->fuel('pages');
if($this->pages instanceof PagesType) $this->template = $this->pages->getTemplate();
parent::init();
}

I removed this line in the init function :

$this->fuel->breadcrumbs->add(new Breadcrumb('../', $this->page->get('title|name')));

And I have placed this line in the ___executeEdit() and ___executeAdd() functions :

$this->fuel->breadcrumbs->add(new Breadcrumb('../', $this->page->get('title|name')));

Hope this help