Menu images don't show when using multilanguage

Did you find a bug in Joomla! 3.x but aren't sure? This forum is the place to help figure out if the problem is a bug and how to report it. If you are an experienced Joomla! user and are certain that you have found a bug please use the Bug Tracker to submit your issue.
This forum is for discussion about bugs and to get help with reporting them to the Bug Tracker: https://issues.joomla.org

Moderator: ooffick

Forum rules
Please use the official Bug Tracker to report a bug: https://issues.joomla.org
Locked
leecollings
Joomla! Apprentice
Joomla! Apprentice
Posts: 14
Joined: Fri Jun 11, 2010 9:06 am

Menu images don't show when using multilanguage

Post by leecollings » Wed Jun 04, 2014 3:54 pm

The URLs for the menu item images are resulting in 404 error messages, because I'm using a multilanguage site with the url tag added in the URL.

The menu images showed fine before the addition of languages.

iextensions
I've been banned!
Posts: 1498
Joined: Fri Jul 12, 2013 5:37 pm
Contact:

Re: Menu images don't show when using multilanguage

Post by iextensions » Thu Jun 05, 2014 7:40 am

check language of that menu? if you use multilang, you must create all menu for all language.

leecollings
Joomla! Apprentice
Joomla! Apprentice
Posts: 14
Joined: Fri Jun 11, 2010 9:06 am

Re: Menu images don't show when using multilanguage

Post by leecollings » Thu Jun 05, 2014 7:42 am

Yes, I have a seperate menu for each language, and also a system menu used for something else.

They all have images attached to the menu items, but the URL for the images, is just shown as images/etc...

leecollings
Joomla! Apprentice
Joomla! Apprentice
Posts: 14
Joined: Fri Jun 11, 2010 9:06 am

Re: Menu images don't show when using multilanguage

Post by leecollings » Thu Jun 05, 2014 7:45 am

Something I have noticed, when a menu image is set, and the 'Add Menu title' is set to YES... the image is shown in a div as a background image, and the URL gives a 404.

However, when the 'Add Menu Title' is set to NO, the image is displayed fine, as it is an <img> with the correct URL.

This sounds a bit more confusing now.

leecollings
Joomla! Apprentice
Joomla! Apprentice
Posts: 14
Joined: Fri Jun 11, 2010 9:06 am

Re: Menu images don't show when using multilanguage

Post by leecollings » Thu Jun 05, 2014 7:50 am

To clarify, in default_component.php within mod_menu I'm using '$item->menu_image' for both calls of image url.

When the Menu Title is shown, the url displays as 'images/vehicle-select/suv.png'.
When the Menu Title is NOT shown, the url displays as 'armouredshielding/images/vehicle-select/suv.png'.

Any reason why this could be changing?


Locked

Return to “Joomla! 3.x Bug Reporting”