Forums

Home » Liferay Portal » English » Liferay Legacy »

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
phall@avexus.com phall@avexus.com
Borderless Portlet
June 13, 2005 1:22 PM
Answer

phall@avexus.com phall@avexus.com

Rank: New Member

Posts: 1

Join Date: June 12, 2005

Recent Posts

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
Borderless Portlet
June 14, 2005 1:08 AM
Answer

mike mike

Rank: Expert

Posts: 481

Join Date: December 14, 2004

Recent Posts

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
Borderless Portlet
June 14, 2005 2:39 AM
Answer

theo theo

Rank: Junior Member

Posts: 43

Join Date: February 28, 2005

Recent Posts

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=&#34;xxx&#34; use-default-template=&#34;false&#34;/>
</portlets>
<br /><br /><br />c u
Vikas R Khengare
RE: Borderless Portlet
December 3, 2011 2:00 AM
Answer

Vikas R Khengare

Rank: Junior Member

Posts: 54

Join Date: August 1, 2008

Recent Posts

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
Sagar A Vyas
RE: Borderless Portlet
December 3, 2011 7:00 AM
Answer

Sagar A Vyas

Rank: Expert

Posts: 488

Join Date: April 17, 2009

Recent Posts

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