Fórumok

Borderless portlets render different markup as placed in portlet.vm

Florian Brandel, módosítva 11 év-val korábban

Borderless portlets render different markup as placed in portlet.vm

New Member Bejegyzések: 5 Csatlakozás dátuma: 2012.05.04. Legújabb bejegyzések
Hi,

I can successfully hide all portlet borders by placing the setting

<settings>
     <setting key="portlet-setup-show-borders-default" value="false" />
 </settings>


in my liferay-look-and-feel.xml

But unfortunately the markup is different as before. It seems that the HTML in portal.vm is not used when borders are off. Where does the markup come from, and am I able to change it?

For instance _with borders_ a <section> element is used to render the portlet, without borders it is a <div>. Also the ID attribute is named different.

Theming would be kind of tricky because of two different portlet markup structures.
thumbnail
David H Nebinger, módosítva 11 év-val korábban

RE: Borderless portlets render different markup as placed in portlet.vm

Liferay Legend Bejegyzések: 14917 Csatlakozás dátuma: 2006.09.02. Legújabb bejegyzések
Which is why you do not theme based upon the outlying markup, just within the portlet itself.