Reducing navigation screens for default portlets

Jan Tošovský, modified 6 Years ago. Liferay Master Posts: 576 Join Date: 7/22/10 Recent Posts

There is documentation how to add new items to existing navigation screens, but I am missing the opposite. Is there any smart way to remove navigation categories (horizontal items) or entries (vertical ones)? I'd like to remove various screens in User Admin portlet.

 

https://dev.liferay.com/develop/tutorials/-/knowledge_base/7-1/screen-navigation-framework

 

In 6.2 it was sufficient to comment JSP tags :-(

Prashanth Relekar, modified 6 Years ago. New Member Posts: 17 Join Date: 9/20/18 Recent Posts

Try returning false for  isVisible() method in respective java file.

 

    @Override
    public boolean isVisible(User user, User selUser) {
        return false;
    }