5haun Posted October 9, 2014 Share Posted October 9, 2014 (edited) Hello Everyone!How can I change the home button for the cms info block link in the top menu to from something like content/category/1-hometo 'index'?Here's the menu: Edited November 17, 2014 by vekia (see edit history) Link to comment Share on other sites More sharing options...
5haun Posted October 13, 2014 Author Share Posted October 13, 2014 ? Link to comment Share on other sites More sharing options...
5haun Posted November 17, 2014 Author Share Posted November 17, 2014 Okay I found a fix:In modules/blocktopmenu/blocktopmenu.php replace case 'CMS_CAT': $category = new CMSCategory((int)$id, (int)$id_lang); if (count($category)) { $this->_menu .= '<li><a href="'.$category->getLink().'">'.$category->name.'</a>'; $this->getCMSMenuItems($category->id); $this->_menu .= '</li>'.PHP_EOL; } break; With case 'CMS_CAT': $category = new CMSCategory((int)$id, (int)$id_lang); if (count($category)) { if($category->id === 1){ $this->_menu .= '<li><a href="'.__PS_BASE_URI__.'">'.$category->name.'</a>'; }else{ $this->_menu .= '<li><a href="'.$category->getLink().'">'.$category->name.'</a>'; } $this->getCMSMenuItems($category->id); $this->_menu .= '</li>'.PHP_EOL; } break; Link to comment Share on other sites More sharing options...
vekia Posted November 17, 2014 Share Posted November 17, 2014 hello thank you for posting solution i marked topic title as [solved] [sOLVED] TopicIf, after posting a topic, you find a solution to your problem, please indicate it in your post and describe the solution.Furthermore if you are the author of the topic for which a solution has been found, please edit your topic title to mark it as [sOLVED].To mark a topic as [solved] :- Edit the first post of your topic by clicking on the "Edit" button,- Click on the "Use full editor" button,- Add the "[solved]" string at the beginning of your topic title and click on the "Submit Modified Post" button. Link to comment Share on other sites More sharing options...
Recommended Posts