Permalink
Browse files

Force breadcrumbs on report view, category index and search result pages

  • Loading branch information...
1 parent 115ee9c commit 62dc51ad8e9e02670ba2818558785942a998cb56 @rjmackay rjmackay committed Feb 27, 2011
Showing with 8 additions and 0 deletions.
  1. +3 −0 controllers/mobile/categories.php
  2. +5 −0 controllers/mobile/reports.php
@@ -72,6 +72,9 @@ public function index()
}
}
$this->template->content->categories = $parent_categories;
+
+ // Force Home breadcrumb
+ $this->template->header->breadcrumbs = " ";
// Get pages
$this->template->content->pages = ORM::factory('page')->where('page_active', '1')->find_all();
@@ -74,6 +74,9 @@ public function search($town = false)
$this->template->content = new View('mobile/reports');
+ // Force Home breadcrumb
+ $this->template->header->breadcrumbs = " ";
+
$db = new Database;
$town = isset($_GET['town']) ? $_GET['town'] : '';
@@ -179,6 +182,8 @@ public function view($id = false)
$this->template->header->js = new View('mobile/reports_view_js');
$this->template->content = new View('mobile/reports_view');
+ $this->template->header->breadcrumbs = " ";
+
if ( ! $id )
{
url::redirect('mobile');

0 comments on commit 62dc51a

Please sign in to comment.