留言板

Borderless Portlet

phall@avexus.com phall@avexus.com,修改在18 年前。

Borderless Portlet

New Member 发布: 1 加入日期: 05-6-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?
mike mike,修改在18 年前。

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.
theo theo,修改在18 年前。

Borderless Portlet

Junior Member 帖子: 43 加入日期: 05-3-1 最近的帖子
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,修改在12 年前。

RE: Borderless Portlet

Junior Member 帖子: 58 加入日期: 08-8-1 最近的帖子
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,修改在12 年前。

RE: Borderless Portlet

Liferay Master 帖子: 679 加入日期: 09-4-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