Closed (works as designed)
Project:
menuimage
Version:
7.x-1.1
Component:
Code
Priority:
Major
Category:
Support request
Assigned:
Unassigned
Reporter:
Anonymous (not verified)
Created:
26 Apr 2013 at 16:37 UTC
Updated:
8 Jul 2022 at 00:38 UTC
Jump to comment: Most recent
Comments
Comment #1
kris-o3 commentedthat is correct.
it's only really useful for 'custom' frontends.
(and you are rather comfortable writing some php.)
as an example, the 'grid' of links w/ images at the bottom of this page:
http://engineering.temple.edu/department/electrical-computer-engineering
is generated from the menu items that exist 'below' this page in the menu system.
Comment #2
Anonymous (not verified) commentedThank you for the quick response.
Comment #3
arnaud.dabouis commentedAfter searching around Drupal documentation for a while, here is a theme solution to implement this module.
1 - Override theme_menu_link function in your theme's template.php file using this pattern THEME_NAME_menu_link or THEME_NAME_menu_link__MENU_NAME
2 - The function should look like this
Comment #4
hagit commentedThank you arnaudlumini. your code helped me alot.
Comment #5
albertski commentedHere is how I have done it:
Comment #6
puppetmast0r commented@albertski,
your method seems to work, but how do I display both the image and the text?
Comment #7
marcmueller commented@Puppetmast0r:
something like this:
$element['#title'] = $image_markup;$element['#title'] = $element['#title']."<br>".$image_markup;Comment #8
Abhinaw commentedI would like to display a icon of correct answer but in my condition full url is displaying (its not displaying icon ) how i'll manage.
This icon will be in a table so user can click that icon and check the answer. please guide me where i'm doing wrong.
Thanks