I'm creating a website and would like to have two image menus on it, but it doesn't seem possible. Am I missing something, is this possible? If not, has anyone written any patches that allow you to do this?

Comments

pobster’s picture

Hmmmm oddly Drupal is supposed to email me when there are new issues and well... It hasn't and so I've been unaware that any of these issues are here!

Anyways, erm - why are you having problems? Works fine for me; http://www.essexairambulance.co.uk

Pobster

stg11’s picture

I'm having the same problem. In the imagemenu settings, you can only choose one imagemenu for the block -- it does not create a block for each imagemenu. I would like to put an imagemenu block in a panel and have a separate imagemenu block in the page header. Is there another way to do it or does there need to be a patch? I'm not sure how you got the two menus to work on http://www.essexairambulance.org.uk/

pobster’s picture

The block which is there is only really there for an example, you're really supposed to use the filter to show the menus - so yes, you're supposed to 'roll your own' - just create a new block and using the input filter which you've enabled to show the imagemenus, stick in the filter.

Pobster

stg11’s picture

Thanks for your help but I'm still confused. I must be missing something. Are you talking about the filters on the Imagemenu Settings page? If so, it only allows changing the sitewide filter not creating new filters. So I can switch but I don't see anyway to add a new imagemenu block. When you say create a new block do you really mean create a new imagemenu? Creating a generic block just has a body area with no filter selection. (Right now I'm simulating the imagemenu with my own html markup) Or do I need to go into the code and add something or put some php code into the block?

BTW, I'm trying to put the first imagemenu in the header area of every page and a second imagemenu in a panel (I'm using panels 2 but had the same problem with panels 1)

I would really appreciate a more specific answer. Thanks.

pobster’s picture

Sorry for the delay in replying (hope you've not given up on it already?!) Anyways, I now have a working 5.x install and can clearly see that you're given the choice of which input filter to use when you're defining a new block. If you're not familiar with input filters then please read up on them in the handbook.

This is all going to be pretty irrelevant soon as I'm going to rewrite this module... Soon-ish anyway...

Pobster

stg11’s picture

Status: Active » Closed (fixed)

It's working fine for me now, using the filter. Since it's working for me and glazer hasn't posted anything more on this, I'm closing it

Here's a step-by-step guide:

1. install and activate the imagemenu module
2. Create imagemenus by going to admin/build/menu/imagemenu. Keep track of the menu ids
3. Create a filter by going to admin/settings/filters/add. Check the box that says Imagemenu Filter
4. Create a block by going to admin/build/block. Enter [imagemenu:nn] in the block body where nn is the menu id saved in step 2.
5. Configure block options as desired and/or add block to a panel
6. Optionally adjust css to suit your needs

I hope this is helpful to others.