rv01 Posted April 16, 2014 Share Posted April 16, 2014 (edited) Hi, How can I modify this navigation menu? I want to remove "currency" choice and to add "Contact us" and "Site Map". Is there a way in the BO or do I have to modify a file? Thanks Edited April 18, 2014 by rv01 (see edit history) Link to comment Share on other sites More sharing options...
falkor Posted April 16, 2014 Share Posted April 16, 2014 (edited) You're probably talking about displayNav hook. You can menage him from backoffice -> modules -> position.Some modules may not have implemented hookDisplayNav function (then you won't be able to use this module in this hook), then you need to modify file. Edited April 16, 2014 by falkor (see edit history) Link to comment Share on other sites More sharing options...
rv01 Posted April 16, 2014 Author Share Posted April 16, 2014 I do not have "Display Nav Hook" in modules positions ? Link to comment Share on other sites More sharing options...
falkor Posted April 16, 2014 Share Posted April 16, 2014 Here you have in default instalation of PS 1.6 (screened from back office demo from PS homepage). And this hook is used in header.tpl <nav>{hook h="displayNav"}</nav> If you dont have it in default instalation, then it will be hard to help you, because I dont know which files did you edited. Link to comment Share on other sites More sharing options...
rv01 Posted April 16, 2014 Author Share Posted April 16, 2014 (edited) I use / test a "one click upgrade" version from 1.4.7. to the latest release. And I do not have this displayNav in Modules/Positions list. Anyone have an idea on how to get it back in the list? I checked the French forum and other people have exactly the same problem... unfortunately no answer yet. Edited April 16, 2014 by rv01 (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted April 16, 2014 Share Posted April 16, 2014 try to select module from dropdown: Link to comment Share on other sites More sharing options...
rv01 Posted April 16, 2014 Author Share Posted April 16, 2014 Thanks Vekia, that works to remove the currency block from the bar "displayNav". But how to add a link in this "displayNav" to, for instance, "Contact us" page ? Link to comment Share on other sites More sharing options...
vekia Posted April 16, 2014 Share Posted April 16, 2014 blockpermanentlinks module has got this link, so just use this module in this hook, it will create link to contact us page Link to comment Share on other sites More sharing options...
rv01 Posted April 17, 2014 Author Share Posted April 17, 2014 Hi Vekia, I have put "permanent links" in displayNav but it does not show. Link to comment Share on other sites More sharing options...
vekia Posted April 17, 2014 Share Posted April 17, 2014 oops it's a blockContact module, can you try with this one? Link to comment Share on other sites More sharing options...
rv01 Posted April 17, 2014 Author Share Posted April 17, 2014 Yes I tried that before, no success. I can add some code if you tell me which one and where, thanks. See image, these are the hooks in displayNav but only "language" and "connect" do appear. Link to comment Share on other sites More sharing options...
marena26 Posted April 17, 2014 Share Posted April 17, 2014 I also did not have DisplayNav in positions after update to 1.6. I changed column `position` from 0 to 1 in table ps_hook and now is visible in list. query: UPDATE `ps_hook` SET `position` = '1' WHERE `name` = 'displayNav' LIMIT 1; Link to comment Share on other sites More sharing options...
rv01 Posted April 17, 2014 Author Share Posted April 17, 2014 Good but still, I can't add any link to this navigation menu. Quite disappointing. Link to comment Share on other sites More sharing options...
vekia Posted April 17, 2014 Share Posted April 17, 2014 hello can you show contents of module tpl file located in your theme directory (modules subdirectory) + make sure that module hasn't got exeptions. click on edit icon near contact us module and check exceptions field Link to comment Share on other sites More sharing options...
rv01 Posted April 18, 2014 Author Share Posted April 18, 2014 hello can you show contents of module tpl file located in your theme directory (modules subdirectory) + make sure that module hasn't got exeptions. click on edit icon near contact us module and check exceptions field Many Thanks Vekia, that was it, now I have "contactez-nous" Link to comment Share on other sites More sharing options...
Recommended Posts