RE: Hide border of Web content Display - Liferay 7

thumbnail
Joaquin Cabal, modified 6 Years ago. Regular Member Posts: 106 Join Date: 9/7/09 Recent Posts
Hi! We are working with Web content displays and need to know if Is there a way to hide the border of Web content in some configuration. So we only need to change one time and every new Web content display will not have borders.
Thanks in advance!
Joaquin
thumbnail
Mohammed Yasin, modified 6 Years ago. Liferay Master Posts: 593 Join Date: 8/8/14 Recent Posts
Hi ,  You can edit   portlet configuration,  Look and Feel Configuration - > Application Decorator - > Select bare bore or borderless.
thumbnail
Joaquin Cabal, modified 6 Years ago. Regular Member Posts: 106 Join Date: 9/7/09 Recent Posts
Thank you Mohamed.What I need is a programatic way or how to set default Web content Display preferences. to do it only one time for all portlets
thumbnail
David H Nebinger, modified 6 Years ago. Liferay Legend Posts: 14933 Join Date: 9/2/06 Recent Posts
In the "Look and Feel Configuration" panel for web content display, you'll find the Application Decorators dropdown. If you pick "Barebones" you won't have all of the extra surrounding chrome.

You can control the default value in your theme ala https://github.com/liferay/liferay-portal/blob/master/modules/apps/frontend-theme/frontend-theme-classic/src/WEB-INF/liferay-look-and-feel.xml#L27

It's important to note, however, that this setting applies to all portlets, not just web content displays.
thumbnail
Joaquin Cabal, modified 6 Years ago. Regular Member Posts: 106 Join Date: 9/7/09 Recent Posts
Thanks David! Ir Works!