Hi all,

I'm busy writing a module that creates a menu, the properties of each menu item are "Title", "URL", "image" and "weight" and there will not be any child menu items.

My question is, how can I make a config page that allows the user to add items (I'm pretty new to drupal and so far, my config pages are static...) also, it would be great if, on that config page, the images could be uploaded...

Any advice is welcome...
Thanks

Comments

berenErchamion’s picture

Could you use a custom type for this? Then you could just leverage all the machinery in in CCK and Drupal itself for managing the menu items. You could create a "fisheye menu" type and then a "fisheye menu item".

Another idea would be to try to tie this to a primary or secondary menu.

Why Drupal 5? You might get more people interested if you were building a Drupal 6 module. just something to consider...

beren erchamion
http://tarnaeluin.wordpress.com/

j3frea’s picture

Thanks, I'll look into the custom type idea...

I thought of tying it into a primary or secondary menu but the problem is that there is no image associated with menu items - I could use the description but that's not very user friendly...

I'm using drupal 5 because I'm building a social network and a lot of modules that I'm using are not yet ported to drupal 6... I just thought of adding a fisheye menu and had a look to see if anything was already available - because it wasn't I figured that I'd have a go at getting things started.

Thanks