掲示板

disabling portlet borders and portlet topper toolbar

thumbnail
12年前 に Path Finder LifeRay によって更新されました。

disabling portlet borders and portlet topper toolbar

Expert 投稿: 262 参加年月日: 09/09/18 最新の投稿
Hi,
I need to disable portlet borders and portlet topper toolbar. Is there anyway to do it using css. I tried to disable portlet borders using xml file. But its thrown exceptions while deployment. I need these things ASAP. Suggestions are most welcome.

Thanks in advance,
Path Finder
thumbnail
12年前 に Nilesh Gundecha によって更新されました。

RE: disabling portlet borders and portlet topper toolbar

Regular Member 投稿: 205 参加年月日: 09/12/01 最新の投稿
Path Finder LifeRay:
Hi,
I need to disable portlet borders and portlet topper toolbar. Is there anyway to do it using css. I tried to disable portlet borders using xml file. But its thrown exceptions while deployment. I need these things ASAP. Suggestions are most welcome.

Thanks in advance,
Path Finder



Can you tell me which xml file you modified and whats the modification you did to achieve this?

All you need to do is just add the below tag in portlet.xml file, below the <portlet-info> tag and above the <security-role-ref> tag.
<portlet-preferences>
			<preference>
			<name>portlet-setup-show-borders</name>
			<value>false</value>
			</preference>
		</portlet-preferences>


So combined this will look like as below : -

<portlet-info>
			<title>ABCPortlet</title>
			<short-title>ABCPortlet</short-title>
			<keywords></keywords>
		</portlet-info>
		<portlet-preferences>
			<preference>
			<name>portlet-setup-show-borders</name>
			<value>false</value>
			</preference>
		</portlet-preferences>
		<security-role-ref>
			<role-name>administrator</role-name>
		</security-role-ref>
		<security-role-ref>
			<role-name>guest</role-name>
		</security-role-ref>
		<security-role-ref>
			<role-name>power-user</role-name>
		</security-role-ref>
		<security-role-ref>
			<role-name>user</role-name>
		</security-role-ref>
	


I doubt the exception what you must be getting while deployment must be because of the unsuccessful parsing of XML file. Just check the XML syntax correctness.

Hope this helps.

Regards,
Nilesh.
thumbnail
12年前 に Path Finder LifeRay によって更新されました。

RE: disabling portlet borders and portlet topper toolbar

Expert 投稿: 262 参加年月日: 09/09/18 最新の投稿
Hi Nilesh,
Thanx for your quick reply. I need the disabling for every portlet in my application. If I use your approach I have to do it for every portlet. right? I disabled the borders using <portlet-show-borders..> tag in liferay-look-and-feel.xml in our theme WEB-INF folder. I got it from the LR6 documentation.

Thanks in advance,
Path Finder
thumbnail
12年前 に Nilesh Gundecha によって更新されました。

RE: disabling portlet borders and portlet topper toolbar

Regular Member 投稿: 205 参加年月日: 09/12/01 最新の投稿
Whats the exception you are getting while deployment??
thumbnail
12年前 に Corné Aussems によって更新されました。

RE: disabling portlet borders and portlet topper toolbar

Liferay Legend 投稿: 1313 参加年月日: 06/10/03 最新の投稿
For every portlet in your app you define it indeed in your themes's liferay-look-and-feel.xml

Make sure to place the settings where they are expected
<look-and-feel>
  ...
  <theme .....>
    <settings>
      <setting key="portlet-setup-show-borders-default" value="false" />
      ...
    </settings>
....</theme></look-and-feel>
thumbnail
12年前 に Path Finder LifeRay によって更新されました。

RE: disabling portlet borders and portlet topper toolbar

Expert 投稿: 262 参加年月日: 09/09/18 最新の投稿
Hi corne,
Thanks for the reply. I did the same and deployed it. But it has given exception and theme dn't deployed at all. Is there only 1 solution for that or can we have any css modification to disable borders for portlets.

Thanks in advance,
Path Finder
thumbnail
12年前 に Corné Aussems によって更新されました。

RE: disabling portlet borders and portlet topper toolbar

Liferay Legend 投稿: 1313 参加年月日: 06/10/03 最新の投稿
Please give full liferay-look-and-feel.xml and stacktrace of exception
thumbnail
12年前 に Path Finder LifeRay によって更新されました。

RE: disabling portlet borders and portlet topper toolbar

Expert 投稿: 262 参加年月日: 09/09/18 最新の投稿
Hi Corne,
The following is the code:
<!--?xml version="1.0"?-->


<look-and-feel>
	<compatibility>
		<version>6.0.5+</version>
	</compatibility>
	<theme id="College" name="College">
	<template-extension>ftl</template-extension>
	<settings>
		<setting key="portlet-setup-show-borders-default" value="false" />
	</settings>
	</theme>
</look-and-feel>

the following is the exception trace:
The content of element type "theme" must match "(root-path?,templates-path?,css-path?,images-path?,javascript-path?,virtual-path?,template-extension?,settings?,wap-theme?,roles?,color-scheme*,layout-templates?)".


I followed LR6 documentation of themes.
Hope this suffice for explanation

Thanks in advance,
Path Finder
thumbnail
12年前 に Corné Aussems によって更新されました。

RE: disabling portlet borders and portlet topper toolbar

Liferay Legend 投稿: 1313 参加年月日: 06/10/03 最新の投稿
I create a brand new Theme and put your xml code in it, without any problems it did deploy.

The error is about the xml not being valid according to dtd, and specifically to the <theme> entity;
But i can't see any errors in it.
Please try to cleanup webapps/ and work folder and redeploy again to make sure you are not looking at something different.
thumbnail
12年前 に Path Finder LifeRay によって更新されました。

RE: disabling portlet borders and portlet topper toolbar

Expert 投稿: 262 参加年月日: 09/09/18 最新の投稿
Hi Corne,
Thanks for your reply. I will make a shot at that and get back to you again.

Thanks in advance,
Path Finder
thumbnail
11年前 に Dave Weitzel によって更新されました。

RE: disabling portlet borders and portlet topper toolbar

Regular Member 投稿: 208 参加年月日: 09/11/18 最新の投稿
hi,
intercepting this thread as it seems the most recent on the topic of portlet titles.

I just want to hide the tile bar for journal content articles (portlet 56) in 6.1 CE.

Most of the content we have imported has its own heading/title as part of the content and customer wants to keep doing that,
I tried adding:
<portlet-preferences>
<preference>
<name>portlet-setup-show-borders</name>
<value>false</value>
</preference>
</portlet-preferences>
to both portlet-custom.xml and portlet-ext.xml and restarting site but new content displays still have the title bar.

Is there any other setting I can try? For instance can I set something in the init-ext.jsp for the ournal_content portlet?

There is a lot of content to import and also setting look and feel manually for new portlets is a lot of effort for something so trivial.