Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
surjeet singh
Remove border for a particular portlet through out the Site
April 1, 2013 7:13 AM
Answer

surjeet singh

Rank: New Member

Posts: 14

Join Date: October 8, 2012

Recent Posts

Dear All,

I have created a portlet which I am using through out the SITE. So rather than going to all pages and change the look and feel(Show border - no), I want to remove the border by some property.

Is there any property by that portlet which can remove the border by default.
I have used

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

in portlet.xml for my portlet.

But that thing hadn't worked for me.

please help me ASAP.

Thanx in advance,
Jaynil A Bagdai
RE: Remove border for a perticular portlet through out the Site
March 11, 2013 3:48 AM
Answer

Jaynil A Bagdai

Rank: Regular Member

Posts: 120

Join Date: March 3, 2012

Recent Posts

Hi Surjeet singh,

Can you try with this approach, this may help you.
In your default controller add this.

1
2PortletPreferences prefs = PortletPreferencesFactoryUtil.getLayoutPortletSetup(page, portletInstanceId);
3prefs.setValue("groupId", String.valueOf(page.getGroupId()));
4prefs.setValue("articleId", article.name());
5prefs.setValue("portletSetupShowBorders", "false");
6prefs.store();
Gouse Basha
RE: Remove border for a particular portlet through out the Site
April 1, 2013 11:41 PM
Answer

Gouse Basha

Rank: New Member

Posts: 10

Join Date: November 30, 2012

Recent Posts

You can uncheck the show border in UI Portlet configuration