?
avatar Dave-LeDev
Dave-LeDev
29 Mar 2018

It's perhaps not a common need; I'd like to be able to add custom parameters for menu items. While this can be accomplished with a Menu Item Layout Override, depending on the parameter that needs to be added and the diversity of link types, this can require dozens of overrides.

Adding to this, if for whatever reason a template must be changed but support the same functionality, those Layout Overrides must be recreated per template.

Supporting custom fields to add parameters can potentially save much time.

avatar Dave-LeDev Dave-LeDev - open - 29 Mar 2018
avatar joomla-cms-bot joomla-cms-bot - change - 29 Mar 2018
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 29 Mar 2018
avatar Dave-LeDev Dave-LeDev - change - 29 Mar 2018
Title
Custom Fields (parameters) for Menu Items
[feature request] Custom Fields (parameters) for Menu Items
avatar Dave-LeDev Dave-LeDev - edited - 29 Mar 2018
avatar Dave-LeDev
Dave-LeDev - comment - 29 Mar 2018

This is supposed to be flagged a feature request but I don't see that added. I don't see an option to change this so if an administrator could correct this for me. My apologies. First post ever on here!


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/20022.

avatar brianteeman
brianteeman - comment - 29 Mar 2018

Can you give an example please?

avatar Dave-LeDev
Dave-LeDev - comment - 29 Mar 2018

Sure. In my very specific use case I'm modifying EasySocial's Toolbar Module. By default it's hard-coded with its own links. Instead I want to replace it with a module position and use a Menu Module in its place. Doing this not only grants me custom menu items but also ACL, which the original module isn't built with.

I've gotten thus far with minimal issue using template overrides. However, I also want to maintain the markup used in the original menu. To do so I need one extra Class tag. This will need to be added via a Menu Item Parameter. At present I will need to make at least 6 different Layout Overrides, and I'm not yet certain if overrides can be created for System Links. If instead I can add this as a Custom Field, it'd take just a couple of minutes to add and I can go about my business adding the usage of this parameter within my template. If the template is changed all I would need to do is re-add the usage of the parameter instead of that and all the Menu Item Layout overrides needed.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/20022.

avatar franz-wohlkoenig franz-wohlkoenig - change - 29 Mar 2018
Status New Discussion
avatar franz-wohlkoenig franz-wohlkoenig - change - 29 Mar 2018
Category com_fields com_menus Feature Request
avatar Dave-LeDev
Dave-LeDev - comment - 29 Mar 2018

Minor correction. I wouldn't even need to re-add the parameter as that styling is dependent upon EasySocial's markup and not the template's. So if Custom Fields are supported I would just need to copy my mod_menu and com_easysocial/toolbar overrides.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/20022.

avatar Dave-LeDev Dave-LeDev - edited - 29 Mar 2018
avatar Dave-LeDev Dave-LeDev - change - 29 Mar 2018
Title
[feature request] Custom Fields (parameters) for Menu Items
Custom Fields (parameters) for Menu Items
avatar Dave-LeDev Dave-LeDev - change - 29 Mar 2018
The description was changed
avatar Dave-LeDev Dave-LeDev - edited - 29 Mar 2018
avatar brianteeman
brianteeman - comment - 29 Mar 2018

seems a very unique and specific requirement. you would probably best to just make your own menu module with all the data you require

avatar Dave-LeDev
Dave-LeDev - comment - 29 Mar 2018

Even doing so, the information I need is Menu Item-specific. It wouldn't affect all links.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/20022.

avatar Dave-LeDev
Dave-LeDev - comment - 29 Mar 2018

I've tried finding a plugin that adds this functionality, but all I've found so far is a project from 2014 asking why their implementation wasn't working.

#5289


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/20022.

avatar brianteeman
brianteeman - comment - 29 Mar 2018

i just cant see there being a need for this in the core but maybe thats because i still dont really understand your usecase

avatar Dave-LeDev
Dave-LeDev - comment - 29 Mar 2018

I submit that while I cannot immediately think of an alternative use case it could potentially provide a faster alternative to Menu Item Layout Overrides. Instead of having to create the override with its XML, use the Custom Fields instead. One Custom Field can be designated as a switch to render a portion of your Override. This could also potentially make custom Menu Item Layouts much simpler to develop for templators, especially if those Custom Fields can be installed along with the template.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/20022.

avatar brianteeman
brianteeman - comment - 29 Mar 2018

and if you follow the original source you will see that they were able to fix their code

avatar Dave-LeDev
Dave-LeDev - comment - 29 Mar 2018

My yellow flags on that are that it appears to be a personal project not really meant to be widely distributed, it hasn't been updated in at least 2 years, and I'm not proficient enough a programmer to maintain it myself. If it were part of core or as a paid 3rd party plugin I wouldn't be alone in maintaining it.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/20022.

avatar brianteeman
brianteeman - comment - 29 Mar 2018

thatz your call.
if it works then there is no need to update it
i am just not convinced this is needed in the core.

avatar Dave-LeDev
Dave-LeDev - comment - 29 Mar 2018

I'm new to this side of Joomla, so please have patience with me. What process is involved in deciding what goes into core? Are core components ever commissioned?


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/20022.

avatar brianteeman
brianteeman - comment - 29 Mar 2018

the biggest criteria for a new feature would be if it was useful to a significant % of web sites

avatar Dave-LeDev
Dave-LeDev - comment - 29 Mar 2018

I'll reformulate my pitch and ask around. Thanks for your input!


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/20022.

avatar brianteeman brianteeman - change - 29 Mar 2018
Status Discussion Closed
Closed_Date 0000-00-00 00:00:00 2018-03-29 20:12:46
Closed_By brianteeman
avatar brianteeman brianteeman - close - 29 Mar 2018

Add a Comment

Login with GitHub to post a comment