prog90 Posted October 21, 2012 Share Posted October 21, 2012 Hello, I have in breadcrumb.tpl a variable called path. But I can not where it is defined initially. There is no anything about it in FrontController, nor in other system files. I need this because I want to cut the last part of breadcrumb, when the user comes to the page of third level. For example to the edit of personal information. So I just want to find where this variable is filled. I have only found through my editor next lines but that is not that path. It is something other. Though if it was that path the main question is where it is defined so for example for the personal information section or for other sections of site except categories? pages and product pages Z:\home\localhost\www\prestashop\controllers\CategoryController.php(162): 'path' => Tools::getPath((int)($this->category->id)), Z:\home\localhost\www\prestashop\controllers\CMSController.php(99): 'path' => ((isset($this->cms->id_cms_category) AND $this->cms->id_cms_category) ? Tools::getFullPath((int)($this->cms->id_cms_category), $this->cms->meta_title, 'CMS') : Tools::getFullPath(1, $this->cms->meta_title, 'CMS')) Z:\home\localhost\www\prestashop\controllers\CMSController.php(108): 'path' => ($this->cms_category->id !== 1) ? Tools::getPath((int)($this->cms_category->id), $this->cms_category->name, false, 'CMS') : '', Z:\home\localhost\www\prestashop\controllers\ManufacturerController.php(84): 'path' => ($this->manufacturer->active ? Tools::safeOutput($this->manufacturer->name) : ''), Z:\home\localhost\www\prestashop\controllers\ProductController.php(162): 'path' => Tools::getPath((int)$category->id, $this->product->name, true), Z:\home\localhost\www\prestashop\controllers\SupplierController.php(83): 'path' => ($this->supplier->active ? Tools::safeOutput($this->supplier->name) : ''), Z:\home\localhost\www\prestashop\tools\taasc\AddressStandardizationSolution.php(855): 'PATH' => 'PATH', Link to comment Share on other sites More sharing options...
Recommended Posts