Closed (outdated)
Project:
Imagemenu
Version:
6.x-1.1
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
30 Apr 2010 at 12:15 UTC
Updated:
27 Jun 2018 at 17:42 UTC
Jump to comment: Most recent
Comments
Comment #1
Alex Andrascu commentedsubscribing...image menus shouldn't take over all the menus
Comment #2
SuperZambezi commentedI have this problem too. What file I supposed to edit to get this to work? Thanks.
Comment #3
mustanggb commentedimagemenu.admin.inc line 335
From:
'#required' => TRUE,
To:
'#required' => FALSE,
---
imagemenu.admin.inc line 424 and 425
From:
$check = is_readable($item['imagepath']);
if (!$check) form_set_error('imagepath', t('File not found.'));
To:
//$check = is_readable($item['imagepath']);
//if (!$check) form_set_error('imagepath', t('File not found.'));
Comment #4
SuperZambezi commentedThanks, it worked but I was hoping that instead of the image, the text would appear as the link. What I am left with now is one of those no file found squares.
And on a side note, is there any way to have the children menu links appear when the parent menu is selected? I could do this with the normal menus but on ImageMenus they do not appear. Thanks for any help I can get.
Comment #5
Lordnine commentedWas a solution ever found for this? I've been looking for a way to use imagemenu and/or pure text links in the same menu system for about a week and this is the closest solution I've found.
Comment #6
juliekj commentedI'm looking for the same thing, any info on if this will be happening or not would be greatly appreciated, so that if not I can start looking for another solution
Comment #7
tapesonthefloor commentedHey folks.
Here's a simple solution that will allow imagemenu to display non-image menu items as well. Basically, we need it to test if the 'image' field is blank, and, if it is, display the 'title' as a link instead.
Here are the changes we need to make.
The first changes are Network's contribution from #3 above.
imagemenu.admin.inc line 336
From:
To:
imagemenu.admin.inc line 425 and 426
From:
To:
We'll next add a bit of code to imagemenu.module. Jump down to the
ifblock at around line 491, which is within the menu item display loop. Within the brackets of thisifblock (looks likeif (!empty($item['path']))) we have the following code:This displays a menu item with an image. We need to surround this with a nested
ifblock, telling imagemenu to check for the absence of an 'imagepath' as well. If 'imagepath' is absent, we would like to display a simple text link, thankyouverymuch. Replace the block above with the following:Be sure to save/publish/upload both files, and imagemenu should magically do what you want it to do. If something's awry, let me know and I'll happy amend the code above. Also let me know if this should be presented as a patch. I'll happily whip something up.
Comment #8
pobster commentedClosing as D6.x is now unsupported.