Jump to content

[SOLVED] Drop down menus for top menu block?


Recommended Posts

Good morning

 

Assuming you are using PS default theme then this happens naturally when you add a "child" to a "parent" category

 

 

If you have a Category "Pet"

http://screencast.com/t/Dq1IK6WAh

 

Create child categories

http://screencast.com/t/GwR1z9PCeYX

 

Goto: Back office > Modules > Module > Top horizontal Menu > Configure

http://screencast.com/t/dMo8fo7AX

 

Result

 

http://screencast.com/t/CLDzoxgn

 

Hope this helps

 

Paul

  • Like 1
Link to comment
Share on other sites

Thanks for your help.

 

I don't want to create submenus based on categories.  I want to create drop down lists for custom topics that will link to different pages.  For example,

 

Topic 1

   Topic 1.1

   Topic 1.2

 

When topic 1 on the top bar is moused over, I would like Topic 1.1 and 1.2 to drop down (like I can do with Dreamweaver with Spry assets).

 

Steve

Link to comment
Share on other sites

Good morning Milos

 

Using PS 1.5.5 default theme

 

These are CMS pages

 

I am struggling a bit and it would be easier for you to see if you go to HERE and click on Topics

 

I cannot get the First Child to link but the Second one does

 

Anyway, have a look 

 

Paul

Link to comment
Share on other sites

Yes, I know that.  What I would like to know is how to do drop down submenus on the top menu, each with there own links.

 

Alternatively, I would like to know how to add parent CMS categories, which would probably satisfy my needs.

 

Some of the other posters show what I am looking for, they just don't show how they did it.

 

Steve

Link to comment
Share on other sites

go to preferences > CMS

click on "add new" in CMS Categories block:

8XrjFx8.png

 

i created My Test Category:

Pt7x3DY.png

 

 

in the third step - add new pages to your category. i created 3 sample pages:

muI9f66.png

 

 

then back to the modules > top horizontal menu > configuration page

 

j0SVCFF.png

 

1) YOu will see new category on list "My Test Category" - select it (left hand side block) 

2) click on ADD >> button

3) you will see CMS Category ("My Test Category") in the right hand side block

4) hit save

 

 

effects in front office:

u5eWgb5.png

 

1) select

  • Thanks 1
Link to comment
Share on other sites

  • 3 weeks later...

Hi vekia,

 

i can´t select the one in bold (Manufacturer)that should make a drop down menu with all manufacturers.

 

Also i don´t have an All manufacturers...  :unsure: in that list...

 

And if you want to add links to the menu, on the add a link to top menu, it seams that you can´t make drop down , just independent...

 

thanks

Link to comment
Share on other sites

:D I thought of that but i was not sure and afraid of doing something wrong!

 

Thanks for your time and patience vekia!

 

I made the update to version 1.7 and All Manufacturers indeed shows, but after i save and go to FO my shop was gone...  :huh:

 

Another thing... where can i change the name from All Manufacturers to whatever i want?

Link to comment
Share on other sites

thank you for information

you can change it under localization > translations tab in your back office

from dropdown select "installed modules translations"

then select theme, and press flag

 

translate any thing you want :)

(it works also if you want to change text in english - just press US flag)

Link to comment
Share on other sites

thanks a lot for your help vekia

 

the All manufacturers stays as link to manufacturers that leads to an "ugly" empty page where we are supposed to have manufacturers.

 

i mean i wish that the All manufactures was not a link as in drop down menu from manufactures left column but only the drop down menu items that follow.

 

many hosters don´t allow max_input_var greater than 1000 so i was looking for original file  :D on post #30

Link to comment
Share on other sites

in blocktopmenu.php use code:

$this->_menu .= '<li class="mymanufacturerlink"><a href="'.$link->getPageLink('manufacturer').'">'.$this->l('All manufacturers').'</a><ul>'.PHP_EOL;

then somewhere in js scripts use this:

$('.mymanufacturerlink').click(function(e) {
e.preventDefault();
});
Link to comment
Share on other sites

Thanks vekia,

 

sorry to check just now but sometimes virus can put us offline! fortunately was just a big flu and my pc is safe!  :)

 

if i get it right i put this code on the blocktopmenu.php

$this->_menu .= '<li class="mymanufacturerlink"><a href="'.$link->getPageLink('manufacturer').'">'.$this->l('All manufacturers').'</a><ul>'.PHP_EOL;

and the script in the header.tpl 

 

i have a doubt about where that file is. there is none in the blocktopmenu folder, the only one there is blocktopmenu.tpl, should i put it there?

Link to comment
Share on other sites

thanks vekia,

 

on header.tpl the code is proper pasted

 

on blocktopmenu.php where should i put  ?

$this->_menu .= '<li class="mymanufacturerlink"><a href="'.$link->getPageLink('manufacturer').'">'.$this->l('All manufacturers').'</a><ul>'.PHP_EOL;

i pasted kinda random and got this warning on chrome console

 

event.returnValue is deprecated. Please use the standard event.preventDefault() instead. jquery-1.7.2.min.js:3

Edited by joaofilipe (see edit history)
Link to comment
Share on other sites

  • 6 months later...
  • 9 months later...

Hey There!

 

I did followed all the above step but guess what a new menu with cams category gets created instead of appearing on the same categories menu.?

 

I did added the cams categories with cams pages in Top Horizontal menu but still no luck

 

Can you help?

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...