GlobalDIMA Member Nov 17, 2015 #1 Hi all Someone could help me and comment as I add the user menu a title and a link to be directed to my website?
Hi all Someone could help me and comment as I add the user menu a title and a link to be directed to my website?
twisted1919 Administrator Staff member Nov 17, 2015 #2 Follow https://forum.mailwizz.com/threads/customer-area-menu-items.6/ and replace the _addMenuItem method from the article with this one: PHP: public function _addMenuItem(array $items = array()) { $newItems = array(); $newItem = array( 'name' => 'MY TITLE', 'icon' => 'glyphicon-book', 'active' => '', 'route' => 'http://www.google.com', ); foreach ($items as $name => $value) { if ($name == 'dashboard') { $newItems['mylink'] = $newItem; } $newItems[$name] = $value; } if (!isset($newItems['mylink'])) { $newItems['mylink'] = $newItem; } return $newItems; }
Follow https://forum.mailwizz.com/threads/customer-area-menu-items.6/ and replace the _addMenuItem method from the article with this one: PHP: public function _addMenuItem(array $items = array()) { $newItems = array(); $newItem = array( 'name' => 'MY TITLE', 'icon' => 'glyphicon-book', 'active' => '', 'route' => 'http://www.google.com', ); foreach ($items as $name => $value) { if ($name == 'dashboard') { $newItems['mylink'] = $newItem; } $newItems[$name] = $value; } if (!isset($newItems['mylink'])) { $newItems['mylink'] = $newItem; } return $newItems; }