掲示板

Borderless Portlet

18年前 に phall@avexus.com phall@avexus.com によって更新されました。

Borderless Portlet

New Member 投稿: 1 参加年月日: 05/06/13 最新の投稿
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?
18年前 に mike mike によって更新されました。

Borderless Portlet

Expert 投稿: 481 参加年月日: 04/12/15 最新の投稿
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.
18年前 に theo theo によって更新されました。

Borderless Portlet

Junior Member 投稿: 43 参加年月日: 05/03/01 最新の投稿
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
12年前 に Vikas R Khengare によって更新されました。

RE: Borderless Portlet

Junior Member 投稿: 58 参加年月日: 08/08/01 最新の投稿
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
12年前 に Sagar A Vyas によって更新されました。

RE: Borderless Portlet

Liferay Master 投稿: 679 参加年月日: 09/04/17 最新の投稿
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