Foros de discusión

disabling portlet borders and portlet topper toolbar

thumbnail
Path Finder LifeRay, modificado hace 12 años.

disabling portlet borders and portlet topper toolbar

Expert Mensajes: 262 Fecha de incorporación: 18/09/09 Mensajes recientes
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
Nilesh Gundecha, modificado hace 12 años.

RE: disabling portlet borders and portlet topper toolbar

Regular Member Mensajes: 205 Fecha de incorporación: 1/12/09 Mensajes recientes
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
Path Finder LifeRay, modificado hace 12 años.

RE: disabling portlet borders and portlet topper toolbar

Expert Mensajes: 262 Fecha de incorporación: 18/09/09 Mensajes recientes
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
Nilesh Gundecha, modificado hace 12 años.

RE: disabling portlet borders and portlet topper toolbar

Regular Member Mensajes: 205 Fecha de incorporación: 1/12/09 Mensajes recientes
Whats the exception you are getting while deployment??
thumbnail
Corné Aussems, modificado hace 12 años.

RE: disabling portlet borders and portlet topper toolbar

Liferay Legend Mensajes: 1313 Fecha de incorporación: 3/10/06 Mensajes recientes
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
Path Finder LifeRay, modificado hace 12 años.

RE: disabling portlet borders and portlet topper toolbar

Expert Mensajes: 262 Fecha de incorporación: 18/09/09 Mensajes recientes
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
Corné Aussems, modificado hace 12 años.

RE: disabling portlet borders and portlet topper toolbar

Liferay Legend Mensajes: 1313 Fecha de incorporación: 3/10/06 Mensajes recientes
Please give full liferay-look-and-feel.xml and stacktrace of exception
thumbnail
Path Finder LifeRay, modificado hace 12 años.

RE: disabling portlet borders and portlet topper toolbar

Expert Mensajes: 262 Fecha de incorporación: 18/09/09 Mensajes recientes
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
Corné Aussems, modificado hace 12 años.

RE: disabling portlet borders and portlet topper toolbar

Liferay Legend Mensajes: 1313 Fecha de incorporación: 3/10/06 Mensajes recientes
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
Path Finder LifeRay, modificado hace 12 años.

RE: disabling portlet borders and portlet topper toolbar

Expert Mensajes: 262 Fecha de incorporación: 18/09/09 Mensajes recientes
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
Dave Weitzel, modificado hace 11 años.

RE: disabling portlet borders and portlet topper toolbar

Regular Member Mensajes: 208 Fecha de incorporación: 18/11/09 Mensajes recientes
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.