Jump to content

How to display categories in database to the top menu (blocktopmenu)?


Recommended Posts

I need to load the categories for the database to the top menu (blocktopmenu )

 

I tried editing the blocktopmenu.php page by returnig values from the getMenuItems(), which is called from the makemenu() in the hookDisplayTop().

 

But, This does not favour me since the Categories are loaded from somewhere else.

 

Looking forward to your prompt reply.

 

Thanks :)

Link to comment
Share on other sites

@vekia, thanks a lot for the prompt reply. As you said when the category is added it appears on the topmenu's dropdown list.

 

Instead, I want them to appear horizontally. Which I'm able to do via adding from the adminimodule.

 

This should appear dynamically so code needs to be modified.

 

I'm looking for the place which assignees value to the $MENU variable which is used in the blogtopmenu.tpl

 

Thanking you once again in advance.

Link to comment
Share on other sites

@vekia, thanks a lot for the prompt reply. As you said when the category is added it appears on the topmenu's dropdown list.

 

Instead, I want them to appear horizontally. Which I'm able to do via adding from the adminimodule.

 

This should appear dynamically so code needs to be modified.

 

I'm looking for the place which assignees value to the $MENU variable which is used in the blogtopmenu.tpl

 

Thanking you once again in advance.

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...