Menu Image Parameter for "Alias" links

34 views
Skip to first unread message

orware

unread,
Nov 24, 2009, 1:08:50 PM11/24/09
to Joomla! CMS Development
I've been using one of Yootheme's templates for our main student site,
but something I've come across a number of times as an annoyance is
the inability to assign a menu image to Alias menu items, as there is
no parameter for it.

Since all other menu item types seem to allow for the menu image
parameter it seems only fitting to me that the Alias menu items be
allowed to have a menu image as well.

In order to accomplish this I simply edited the following file:
administrator/components/com_menus/models/metadata/menulink.xml

And added in the menu image parameter as shown below:
<?xml version="1.0" encoding="utf-8"?>
<metadata>
<state>
<name>Menu Link</name>
<description>Menu Link parameters...</description>
<params>
<param name="menu_item" type="menuitem" state="1"
disable="menulink, separator" label="Menu Item" description="Menu Item
to link to..." />
<param name="menu_image" type="imagelist" directory="/
images/stories" hide_default="1" default="" label="Menu Image"
description="PARAMMENUIMAGE" />
</params>
<advanced />
</state>
</metadata>

Already tried it out on my localhost and everything appears to be
working correctly and my menu image is back :-).

Louis Landry

unread,
Nov 24, 2009, 3:05:54 PM11/24/09
to joomla-...@googlegroups.com
I can certainly dig that Omar... Definitely something we can do for 1.6... might even be interesting to raise with JBS for 1.5 ... as thats a trivial change that really adds consistency to the way the system operates.

- Louis
--
Development Coordinator
Joomla! ... because open source matters.
http://www.joomla.org

Andrew Eddie

unread,
Nov 25, 2009, 5:41:12 AM11/25/09
to joomla-...@googlegroups.com
Added to the 1.6 trunk. Also did the URL type as well.

Regards,
Andrew Eddie
http://www.theartofjoomla.com - the art of becoming a Joomla developer




2009/11/25 orware <orw...@gmail.com>:

jville

unread,
Nov 26, 2009, 1:16:53 AM11/26/09
to Joomla! CMS Development
How about adding ability to configure the image file path? One thing
that I don't like is hard coded paths. Makes file structure handling
difficult.
Reply all
Reply to author
Forward
0 new messages