diff --git a/administrator/components/com_menus/models/item.php b/administrator/components/com_menus/models/item.php index cb81098a11604..8707f75c25a13 100644 --- a/administrator/components/com_menus/models/item.php +++ b/administrator/components/com_menus/models/item.php @@ -1558,6 +1558,12 @@ public function save($data) parent::cleanCache($option); } + // Displays an alert if the menu item is a home page and its access is not public + if ($data['home'] && $data['access'] != 1) + { + JFactory::getApplication()->enqueueMessage(JText::_('COM_MENUS_CREATE_LOGIN_FORM'), 'warning'); + } + return true; } diff --git a/administrator/language/en-GB/en-GB.com_menus.ini b/administrator/language/en-GB/en-GB.com_menus.ini index 08c69caa16a1c..65a7d64bdf2de 100644 --- a/administrator/language/en-GB/en-GB.com_menus.ini +++ b/administrator/language/en-GB/en-GB.com_menus.ini @@ -18,6 +18,7 @@ COM_MENUS_BATCH_OPTIONS="Batch process the selected menu items" COM_MENUS_BATCH_TIP="If a menu or parent is selected for move/copy, any actions selected will be applied to the copied or moved menu items. Otherwise, all actions are applied to the selected menu items." COM_MENUS_CHANGE_MENUITEM="Select or Change Menu Item" COM_MENUS_CONFIGURATION="Menus: Options" +COM_MENUS_CREATE_LOGIN_FORM="As the Access to this Home page was not set to Public, a Login Form menu item should be created and published. It may be hidden if desired." COM_MENUS_EDIT_MENUITEM="Edit Menu Item" COM_MENUS_EDIT_MODULE_SETTINGS="Edit module settings" COM_MENUS_ERROR_ALL_LANGUAGE_ASSOCIATED="A menu item set to All languages can't be associated. Associations have not been set."