Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7656739
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T12:50:41+00:00 2026-05-31T12:50:41+00:00

How to hide some configuration tabs by WebContentDisplay-Portlet. I would let only the main

  • 0

How to hide some configuration tabs by WebContentDisplay-Portlet. I would let only the main configuration and deactivate the rest of tabs or hide them.

Configuration of WebContentDisplay-Portlet

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T12:50:42+00:00Added an answer on May 31, 2026 at 12:50 pm

    If you want to hide tabs for configuration of all portlets than you can add this to your css

    #_86_tabs1supported-clientsTabsId,
    #_86_tabs1permissionsTabsId,
    #_86_tabs1sharingTabsId,
    #_86_tabs1scopeTabsId {
        display: none;
    }
    

    If you want to hide them, or even not render them, than you should create hook and in it modify this jsp

    /portal-src/portal-web/docroot/html/portlet/portlet_configuration/tabs1.jsp
    

    , also take a look at

    /portal/portal-web/docroot/html/portlet/portlet_configuration/init.jsp
    

    For example, in tabs1.jsp find

    if (Validator.isNotNull(selPortlet.getConfigurationActionClass())) {
        tabs1Names += ",setup";
    
        request.setAttribute("liferay-ui:tabs:url" + pos++, configurationURL.toString());
    }
    

    below that enter

    boolean showSystemTabs = true;
    if ("56".equeals(portletResource)) {
       showSystemTabs = false;
    }
    

    note that 56 is id of “Web Content Display” portlet.

    After that you can change (beneath it)

    if (selPortlet.hasMultipleMimeTypes()) {
        tabs1Names += ",supported-clients";
    
        request.setAttribute("liferay-ui:tabs:url" + pos++, supportedClientsURL.toString());
    }
    

    to

    if (selPortlet.hasMultipleMimeTypes() && showSystemTabs) {
        tabs1Names += ",supported-clients";
    
        request.setAttribute("liferay-ui:tabs:url" + pos++, supportedClientsURL.toString());
    }
    

    and same logic for other tabs.

    Be aware that hooks are applied to all communities, user pages …

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a webpart with asp.net control within. I would like to hide some
I'm trying to hide some embedded flash objects without disabling them. Right now I'm
I would like to hide some content from public (like google cached pages). Is
I would like to hide some part of content loaded via ajax, when the
Would like to hide some text inside a div-block, but I don't want to
I am trying to hide some divs before the user prints this giant form,
I'm trying to hide some of my Perl program from the end user to
I wish to put some text on a page and hide some data in
I've an html page with varying size. Based on the conditions i hide some
I want to dynamically hide/show some of the columns in a NSTableView, based on

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.