Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions administrator/components/com_menus/models/item.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
1 change: 1 addition & 0 deletions administrator/language/en-GB/en-GB.com_menus.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down