antoinedan Posted October 26, 2013 Share Posted October 26, 2013 (edited) Hello! I have add this link manually in blocktopmenu.tpl: <li {if {$smarty.server.REQUEST_URI} == '/21-createurs'} class="sfHoverForce"{/if}><a href="/21-createurs">{l s='Créateurs'}</a></li> But it's a category of products and he don't display the subcategories of the category "créateurs" on mouse over the link. Why? Thnaks! Edited October 26, 2013 by antoinedan (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted October 26, 2013 Share Posted October 26, 2013 it doesnt display subcategories because you add code to display only this one simple link. if you want to display subcategories, you have to use module configuration page and add categories there. Link to comment Share on other sites More sharing options...
antoinedan Posted October 27, 2013 Author Share Posted October 27, 2013 Yeah but I can't add this categorie in the module configuration or else links doesn't work with class active when click on. There is no solution to display subcategories directly in the code? Link to comment Share on other sites More sharing options...
vekia Posted October 27, 2013 Share Posted October 27, 2013 it is possible, but in this case you will need to insert there whole tree manually, here is an example: <li class=""> <a href="http://192.168.2.8/1560a/en/3-music-ipods" class="sf-with-ul">iPods<span class="sf-sub-indicator"> »</span></a> <ul style="display: none; visibility: hidden;"> <li><a href="http://192.168.2.8/1560a/en/6-gold">Gold</a></li> <li><a href="http://192.168.2.8/1560a/en/7-brown">Brown</a></li> <li><a href="http://192.168.2.8/1560a/en/8-antique">Antique</a></li> </ul> </li> Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now