Fórum

Borderless Portlet

phall@avexus.com phall@avexus.com, modificado 18 Anos atrás.

Borderless Portlet

New Member Mensagem: 1 Data de Entrada: 13/06/05 Postagens Recentes
Is there an easy way to create a single borderless portlet while leaving the rest of the entries on the page with the standard borders?
mike mike, modificado 18 Anos atrás.

Borderless Portlet

Expert Postagens: 481 Data de Entrada: 15/12/04 Postagens Recentes
Is there an easy way to create a single borderless portlet while leaving the rest of the entries on the page with the standard borders?<br />

<br />
<br />Instead of extending portlet_default you can make a modified version which do not show borders. Look at Wiki display they can be set up to not show borders.
theo theo, modificado 18 Anos atrás.

Borderless Portlet

Junior Member Postagens: 43 Data de Entrada: 01/03/05 Postagens Recentes
Hi,<br /><br />you can specify in liferay-portlet.xml <i>use-default-template=&quot;false&quot;</i> to get no border.<br /><br />example:<br /><br />
<portlets>
       <portlet id="&quot;xxx&quot;" use-default-template="&quot;false&quot;/">
</portlet></portlets>
<br /><br /><br />c u
thumbnail
Vikas R Khengare, modificado 12 Anos atrás.

RE: Borderless Portlet

Junior Member Postagens: 58 Data de Entrada: 01/08/08 Postagens Recentes
Hi,

To have this for single portlet like "Request", we can use following code in JSP / Portlet class,

renderRequest.setAttribute(WebKeys.PORTLET_DECORATE, Boolean.FALSE);


Thanks
thumbnail
Sagar A Vyas, modificado 12 Anos atrás.

RE: Borderless Portlet

Liferay Master Postagens: 679 Data de Entrada: 17/04/09 Postagens Recentes
phall@avexus.com phall@avexus.com:
Is there an easy way to create a single borderless portlet while leaving the rest of the entries on the page with the standard borders?



Hi,

You can keep <use-default-template> false </...> in liferay-portlet.xml.

or you can use following tag inside the portlet.xml to make it particular portlet borderless.

<portlet-preferences>
			<preference>
				<name>portlet-setup-show-borders</name>
				<value>false</value>
			</preference>
		</portlet-preferences>


Thanks,
Sagar Vyas