User tests: Successful: Unsuccessful:
Improve checks for presence of important menu items in custom admin menu.
None
Status | New | ⇒ | Pending |
Category | ⇒ | Administration Language & Strings Modules |
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?
Labels |
Added:
?
?
|
Done!
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.
I have tested this item
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
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.
I have tested this item
Patch ok for me
Status | Pending | ⇒ | Ready to Commit |
rtc
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:
?
|
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:
Otherwise, everything looks fine here.
?