Closed (fixed)
Project:
Imagemenu
Version:
5.x-1.1
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
3 Sep 2007 at 23:20 UTC
Updated:
13 Mar 2010 at 15:42 UTC
i would like to have a menu, which produces html-output more like the default menu, eg ul/li lists instead of tables,
and i would like to have the title as text included in the link. maybe with an option in the admin backend (if/)where to place it.
Possible options for admins:
Do not show title
Show image left/title right
Show title left/image right
Show image top/title bottom
Show title top/image bottom
maybe an extra option for horiz/vert+left/right alignment could be useful. or just add a css class for styling.
please keep me informed!
nice module!
Sam
Comments
Comment #1
pobster commentedThey're only output as tables by default because they're easiest to display images stitched together with no gaps. In the settings though it's possible to specify list/ table/ css for output (for the block only I seem to remember, although it's easy to add them to the filter... Maybe I already did? I can't remember...) Anyways, point being that the classes output allows you to theme and style your menus however you like? Is this what you're looking for? Hmmm... It's entirely possible that I released that only for 4.7 and not 5.x as I don't use 5.x sorry!
Dunno about the other stuff... I'm probably going to write a bit of a rewriting session for a lot of my modules and I'm sure this one will change a LOT as there's a lot of things I don't like about it. Mind you... I don't actually use it myself (!) so maybe it won't be first on the list.
Thanks,
Pobster
PS. I *love* Austria - it's beautiful!
Comment #2
johnphethean commentedHi I have managed to do this by editing the imagemenu.module code.
Line 456 (version 6.x-1.1) -
.'" name="imagemenu_'. $prefix .'_'. $item['mid'] .'"'. $script .' /><br />'.check_plain($item['title']).'</a>'. $menu .'</li>';This displays the title directly below the image. Use your own code where I've put
<br />'.check_plain($item['title']).'to place the text relative to the image.Maybe someone could build in a config option and switch case for the different layout options suggested above? This is definitely a feature i would use.
Comment #3
marcus_clements commentedIf you would like to post a patch of your proposed changes against the latest 6.x version I'll be happy to review and include.
Comment #4
johnphethean commentedSorry rayvaughn I'm not actually very good at this, just know a bit of code etc. I wouldn't even know where to start to create a patch! Also very busy at the moment but might find the time sometime to look into it.
Comment #5
marcus_clements commentedFair enough. A few people have requested this in the issue queue so I'm going to close this issue and probably incorporate the functionality into the next release.