? ? ? Pending

User tests: Successful: Unsuccessful:

avatar izharaazmi
izharaazmi
24 Feb 2017

Improve checks for presence of important menu items in custom admin menu.

Summary of Changes

  • Improve recovery link to bring user back to same page when switching recovery mode on/off, currently it takes the user to admin home page.
  • One liner message for all the 3 important menu item for simplicity.
  • Stop annoying info alert on every page when user is in menu recovery mode and show “exit recovery” as a menu item inside recovery menu parent itself.

Testing Instructions

  • Create a custom admin menu and set it as your active menu in menu module settings.
  • A message stating that the important menu items Module Manager, Menu Manger and Component Container are missing should be shown including a link to enable the recovery mode.
  • Creating any of these items in the custom admin menu should remove that item from the list of missing items in the warning.
  • Exit recovery mode should be shown in the recovery menu when you turn on recovery mode.

Documentation Changes Required

None

avatar izharaazmi izharaazmi - open - 24 Feb 2017
avatar izharaazmi izharaazmi - change - 24 Feb 2017
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 24 Feb 2017
Category Administration Language & Strings Modules
avatar infograf768
infograf768 - comment - 25 Feb 2017

I suggest to change the message, using ordered variables and including the menu type:
from

+MOD_MENU_IMPORTANT_ITEMS_INACCESSIBLE_LIST_WARNING="The active administrator menu does not contain - <strong>%s</strong>. Click to <strong><a href='%s'>turn on the menu recovery mode</a></strong>."

to

+MOD_MENU_IMPORTANT_ITEMS_INACCESSIBLE_LIST_WARNING="The <strong>%1$s</strong> active administrator menu does not contain - <strong>%2$s</strong>. Click to <strong><a href='%3$s'>turn on the menu recovery mode</a></strong>."

and modify $msg in menu.php to:

$msg = JText::sprintf('MOD_MENU_IMPORTANT_ITEMS_INACCESSIBLE_LIST_WARNING', $menutype, implode(', ', $missing), $uri->toString());

in order to get a better information when multiple custom admin menus:

screen shot 2017-02-25 at 10 36 14

Otherwise, everything looks fine here.
?

avatar izharaazmi
izharaazmi - comment - 25 Feb 2017

Doing it.

Btw, how did you manage to product messages for two menutypes at the same
time? IMO, only one can be active at a time. Did you create two modules?

avatar izharaazmi izharaazmi - change - 25 Feb 2017
Labels Added: ? ?
avatar izharaazmi
izharaazmi - comment - 25 Feb 2017

Done!

avatar infograf768
infograf768 - comment - 25 Feb 2017

IMO, only one can be active at a time. Did you create two modules?

Yep. This the nice feature about it. One may create multiple custom admin languages (needs multiple admin menutypes and their modules). Then it is "just" a matter of creating the correct access levels.
That last part can be tricky as core defines "Special" as common access level for quite a few user groups. Tricky but not impossible.

avatar infograf768 infograf768 - test_item - 25 Feb 2017 - Tested successfully
avatar infograf768
infograf768 - comment - 25 Feb 2017

I have tested this item successfully on adb6291


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

avatar infograf768
infograf768 - comment - 25 Feb 2017

One aspect to look at, maybe.
when we have 2 menutypes the recovery link is the same for both and it picks the first one created.

/administrator/index.php?option=com_menus&view=items&menutype=myadminmenu&recover_menu=1

avatar izharaazmi
izharaazmi - comment - 25 Feb 2017

Everything in the recovery link except &recover_menu=1 part is the current page url. That does not depend on the active menu type or the menu type that rendered the message.

This is to land the user back to same page when switching recovery mode.

avatar AlexRed AlexRed - test_item - 25 Feb 2017 - Tested successfully
avatar AlexRed
AlexRed - comment - 25 Feb 2017

I have tested this item successfully on adb6291

Patch ok for me


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

avatar infograf768 infograf768 - change - 25 Feb 2017
Status Pending Ready to Commit
avatar infograf768
infograf768 - comment - 25 Feb 2017

rtc


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

avatar rdeutz rdeutz - change - 26 Feb 2017
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2017-02-26 12:43:53
Closed_By rdeutz
Labels Added: ?
avatar rdeutz rdeutz - close - 26 Feb 2017
avatar rdeutz rdeutz - merge - 26 Feb 2017

Add a Comment

Login with GitHub to post a comment