Joomla-cms: [4.0] New Menu item workflow

Created on 15 Nov 2018  路  12Comments  路  Source: joomla/joomla-cms

Steps to reproduce the issue

edit or create an item
click on New Menu item

Expected result

A link to current item with title

Actual result

Nothing was select, user need to select type of link

I think we need to check context and add value inside
In category => link to category with name
In item => link to item with name
etc ...

J4 Issue No Code Attached Yet

Most helpful comment

newmenu

All 12 comments

I don't really get your point. Can you explain more clearly what you would like to achieve!?

lol sorry did you test it (its joke)?
no sense to click on "add item link menu" in an item form and need to select type, name etc ...
when you you clic on buy did you need to reselect article in cart ??
it will be automatic

I do not understand either.
If you edit or create an item - which item? A Menu Item for a Menu? While editing a Item, it is not possible to click on "new item" this button exists only on lists.
Could you give a screenshot?

newmenu

Thank you ... got it. The item is an article ..

Yes sorry that the same workflow for category thanks @brianteeman for gif

Its a bug not a missing feature

The code does not create at all a single article menu item.
It just loads the menu item modal. Only the language would already be filled in case of multilingual site and the item has a language set.

                // Setup variables for display
                $linkSuffix = '&layout=modal&client_id=0&tmpl=component&' . Session::getFormToken() . '=1';
                $linkItem   = 'index.php?option=com_menus&view=item' . $linkSuffix;

                // Force the language of the menu item when multilang is implemented
                if (Multilanguage::isEnabled() && $this->form->getValue('language') !== '*')
                {
                    $linkItem .= '&forcedLanguage=' . $this->form->getValue('language');
                }

                $urlNew  = $linkItem . '&task=item.add';

Thanks for checking code @infograf768

i think we need to finish this feature ... or remove add link to menu button because no sense to add information x2

Closing as this has been resolved elsewhere and is no longer reproducable


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

Set to "closed" on behalf of @brianteeman by The JTracker Application at issues.joomla.org/joomla-cms/23086

Was this page helpful?
0 / 5 - 0 ratings

Related issues

solenthaler picture solenthaler  路  4Comments

dougbevan picture dougbevan  路  4Comments

Hils picture Hils  路  5Comments

brianteeman picture brianteeman  路  5Comments

PhilETaylor picture PhilETaylor  路  3Comments