Currently, the package throws an exception when the add new button is clicked and no parent page candidate exists. This causes a 500 error and shows an error page to the user that gives them no information on how to resolve the issue.
This PR hides the add new button and shows a warning level message to the user advising them the object types they could create to have a valid parent page.
An example of the message / hidden add button component:
Currently, the package throws an exception when the add new button is clicked and no parent page candidate exists. This causes a 500 error and shows an error page to the user that gives them no information on how to resolve the issue.
This PR hides the
add new
button and shows a warning level message to the user advising them the object types they could create to have a valid parent page.An example of the message / hidden add button component: