掲示板

Liferay 7 : The animated portlet topper and Documents

thumbnail
7年前 に Armaz Mellati によって更新されました。

Liferay 7 : The animated portlet topper and Documents

Junior Member 投稿: 96 参加年月日: 09/10/30 最新の投稿
Hi,

We find the new animated portlet-topper in the new classic theme of Liferay 7 pretty annoying. So that is the first thing that goes out in our themes using the display: none; on ".portlet > .portlet-topper "

.portlet > .portlet-topper {
display: none;
}

However the Document and Media portlet, as the only portlet I have seen so far, has its most-important actions hidden inside the portlet-header !!!

Is there any way around it ? What is the simplest way of making the Document and Media portlet to have buttons as in the Messageboards portlet (see the attached screenshots)

Best regards,
Armaz Mellati
thumbnail
7年前 に Jorge Ferrer によって更新されました。

RE: Liferay 7 : The animated portlet topper and Documents

Liferay Legend 投稿: 2871 参加年月日: 06/08/31 最新の投稿
Hi Armaz,

I don't think it is a good idea to remove the portlet topper, since it's the place where the portlet specific actions live. Note that it is already smart in that it only shows to users who are able to perform any action. Regular users should not see it.

My suggestion if you don't like the animation is to disable it. Also, if you don't like the fact that it's visible and takes much space you can also style it to make it smaller.
thumbnail
7年前 に Armaz Mellati によって更新されました。

RE: Liferay 7 : The animated portlet topper and Documents

Junior Member 投稿: 96 参加年月日: 09/10/30 最新の投稿
Hi Jorge

Thanks for your reply.
Yes, I think we will be have to at least disable the animation and make them less subtle.

However, I still think the Documents and Media portlet kind of, breaks with the other portlets when it comes to the add-content-actions. They should not be in the header. Those actions are the first thing users using the portlet will need and they must find it behind a little +sign. in the header. That is at least my opinion.

I will then probably be have to make a hook to add add-buttons the way they were in 6.2 emoticon
Unnless there is any better way ?

Best regards,
Armaz Mellati
thumbnail
7年前 に Marcos Castro によって更新されました。

RE: Liferay 7 : The animated portlet topper and Documents

New Member 投稿: 11 参加年月日: 14/06/16 最新の投稿
Hey Armaz,

You can freeze the animation adding the class "focus" in <section class="portlet focus"> inside your portlet.ftl
Or moving the .portlet:hover styles to .portlet, they are in the file /css/portlet/_topper.scss

Regards
thumbnail
7年前 に Marcos Castro によって更新されました。

RE: Liferay 7 : The animated portlet topper and Documents (回答)

New Member 投稿: 11 参加年月日: 14/06/16 最新の投稿
You could add the class focus and some SASS lines to see something like this:




.portlet-topper {
	border-style: hidden;

	.portlet-title-default {
		display: none;
	}

	menu {
		background-color: #869CAD;
		border-radius: 4px;
		position: absolute;
		right: 20px;
		top: 10px;

		&amp;:nth-of-type(2) {
			right: 60px;
		}
	}
}
thumbnail
7年前 に Armaz Mellati によって更新されました。

RE: Liferay 7 : The animated portlet topper and Documents

Junior Member 投稿: 96 参加年月日: 09/10/30 最新の投稿
Thanks, that definitely looks much better emoticon