フォーラム

ホーム » Liferay Portal » English » Liferay Legacy

構造的に表示 平面上に表示 ツリー上に表示
スレッド [ 前へ | 次へ ]
toggle
David Atkins
How to disable border by default?
2007/01/29 10:19
答え

David Atkins

ランク: New Member

投稿: 23

参加年月日: 2007/01/29

最近の投稿

When I add a portlet to a page, the border displays by default. I have to click configure and then uncheck the box for Show Borders to make it go away. Is there a setting, at the application or portlet level, to make the borders disabled?
Alaaeldin El-Nattar
RE: How to disable border by default?
2007/03/17 7:32
答え

Alaaeldin El-Nattar

ランク: New Member

投稿: 15

参加年月日: 2007/03/09

最近の投稿

Hi,

You can change that behavior by setting the portlet preferences in portlet.xml.

1<portlet-preferences>
2  <preference>
3    <name>portlet-setup-show-borders</name>
4    <value>false</value>
5  </preference>
6</portlet-preferences>


You have to do it for each portlet you want to disable borders by default for.

Hope this helps,

-Aladdin
André Gervásio
RE: How to disable border by default?
2008/08/09 7:14
答え

André Gervásio

ランク: New Member

投稿: 2

参加年月日: 2008/07/30

最近の投稿

Fine! Works!


Alaaeldin El-Nattar:
Hi,

You can change that behavior by setting the portlet preferences in portlet.xml.

1<portlet-preferences>
2  <preference>
3    <name>portlet-setup-show-borders</name>
4    <value>false</value>
5  </preference>
6</portlet-preferences>


You have to do it for each portlet you want to disable borders by default for.

Hope this helps,

-Aladdin
Milan Jaroš
RE: How to disable border by default?
2008/12/09 4:58
答え

Milan Jaroš

ランク: Expert

投稿: 269

参加年月日: 2008/08/18

最近の投稿

Hello,
there is solution on Theme level... So, you can modify key portlet-setup-show-borders-default in liferay-look-and-feel.xml.

It must be placed in settings (see part of file):

1
2<look-and-feel>
3    <theme>
4        <settings>
5            <setting key="portlet-setup-show-borders-default" value="true"></setting>
6        </settings>
7    </theme>
8</look-and-feel>
Kyrre Myrbostad
RE: How to disable border by default?
2009/02/12 7:04
答え

Kyrre Myrbostad

ランク: Junior Member

投稿: 37

参加年月日: 2009/01/21

最近の投稿

Hi, I have a similar situation but the solution isn't quite up to it:

If you disable the borders on the portlet, there seems to be a standard "top section" that is presented, with text instead of icons. How do i get rid of this one? This doesn't seem to come from the velocity template. I can ofc adjust the portlet.vm to my taste, but if this replacement text can be manipulated that seems to be a more consistent way of doing it.

What I'm trying to achieve here is a set of fixed portlets where a user can only add content or work inside the portlets - not change the way they look / behave.
Milan Jaroš
RE: How to disable border by default?
2009/02/25 2:02
答え

Milan Jaroš

ランク: Expert

投稿: 269

参加年月日: 2008/08/18

最近の投稿

Hello,
you have to understand that you can see this labels because you are "admin" (you have rights). Note, guest or normal User will not see this. If so you have to set roles correctly to get from portal what you want. ;)
Please read some wiki's (something like "Get started" or else).

Here is something about roles in Liferay (if you find more somewhere else post it here).
Florence H
RE: How to disable border by default?
2009/12/07 1:13
答え

Florence H

ランク: Junior Member

投稿: 51

参加年月日: 2009/11/03

最近の投稿

You can add
1<use-default-template>false</use-default-template>

in liferay-portlet.xml
But even an admin cannot remove the portlet...
delang j
RE: How to disable border by default?
2010/07/01 20:11
答え

delang j

ランク: Expert

投稿: 250

参加年月日: 2008/07/13

最近の投稿

hi Alaaeldin,

i did test my local LR 511 and LR 523 but it ain't working. am i miss something or did some mistake?
here my code
 1    <portlet>
 2        <portlet-name>56</portlet-name>
 3        <display-name>Journal Content</display-name>
 4        <portlet-class>com.liferay.portlet.StrutsPortlet</portlet-class>
 5        <init-param>
 6            <name>view-action</name>
 7            <value>/journal_content/view</value>
 8        </init-param>
 9        <expiration-cache>0</expiration-cache>
10        <supports>
11            <mime-type>text/html</mime-type>
12        </supports>
13        <supports>
14            <mime-type>application/vnd.wap.xhtml+xml</mime-type>
15        </supports>
16        <resource-bundle>com.liferay.portlet.StrutsResourceBundle</resource-bundle>
17        <portlet-preferences>
18          <preference>
19            <name>portlet-setup-show-borders</name>
20            <value>false</value>
21          </preference>
22        </portlet-preferences>
23        <security-role-ref>
24            <role-name>guest</role-name>
25        </security-role-ref>
26        <security-role-ref>
27            <role-name>power-user</role-name>
28        </security-role-ref>
29        <security-role-ref>
30            <role-name>user</role-name>
31        </security-role-ref>
32    </portlet>


thanks
Renee Talabucon
RE: How to disable border by default?
2010/07/21 23:17
答え

Renee Talabucon

ランク: Junior Member

投稿: 31

参加年月日: 2010/03/28

最近の投稿

Hi~

This code doesn't work for me either. :/

1
2<portlet-preferences>
3<preference>
4<name>portlet-setup-show-borders</name>
5<value>false</value>
6</preference>
7</portlet-preferences>   


Any other options?

Actually, I want to try setting the Web Content Display portlet to no borders by default because whenever I uncheck "Show borders" in Look and Feel -> Portlet Configuration , I get a " Internal Server Error - An error occurred while accessing the requested resource. " status. And that I don't get at all.

Thanks for all the help in advance. emoticon


Edit: I'm using glassfish v2, liferay 6.0.3 GA1
Vijay Chandra
RE: How to disable border by default?
2013/04/04 6:49
答え

Vijay Chandra

ランク: New Member

投稿: 8

参加年月日: 2013/04/04

最近の投稿

Hi All,

Recently we migrated from Liferay 6.0 to 6.1 and faced a problem that, portlets which are having view.jsp and edit.jsp , portlet border (title and preference icon) are visible.But for the portlet having only view are not displaying any thing.

Solution i tried till now
i) uncheck show border to that particular portlets but failed,
ii) Added

<portlet-preferences>
<preference>
<name>portletSetupShowBorders</name>
<value>false</value>
</preference>
</portlet-preferences>

in portlet.xml for that particular portlet but failed.

iii) Added theme.portlet.decorate.default=false in portal-ext.properties but failed.

iv) My liferay-look-and-feel.xml is having this code too

<look-and-feel>
<compatibility>
<version>6.1.0+</version>
</compatibility>
<theme id="CRPortal" name="CR Portal Theme">
<settings>
<setting key="portlet-setup-show-borders-default" value="false"></setting>
</settings>
</theme>
</look-and-feel> but its vain.

Please help me if any working solution is there to hide the titles and icon for portlets when logged in as normal user

Thanks
Vijay Chandra Kondamudi
Ahmed bouchriha
RE: How to disable border by default?
2013/04/05 4:56
答え

Ahmed bouchriha

ランク: Junior Member

投稿: 55

参加年月日: 2012/05/04

最近の投稿

Hi Vijay Chandra

i think this post is describing better your problem since you posted here your liferay-look-and-feel.xml code
its wear why it didn't work for you you are using the right setting
<setting key="portlet-setup-show-borders-default" value="false"></setting>
.
try to make your
<setting key="portlet-setup-show-borders-default" value="false"></setting> configurable by replacing

1<setting key="portlet-setup-show-borders-default" value="false"></setting>


with
1<setting configurable="true" key="portlet-setup-show-borders-default" type="checkbox" value="false"/>

note the configurable="true" and type="checkbox" that will allow you to control the setting from your manage-page

go to your site open manage-page ----> select the root of your page tree ---> look and feel ----> setting you will find :

see attached file .

all you have to do is to uncheck it .
i wish it helps and good luck

for custom themes feel free to visit https://www.themeray.com.
画像の固定

添付ファイル: show-portlet-boreders-setting.png (2.3k)

Participate in the State of Liferay Community 2017. Help the community and even win some prizes!