留言板

Remove "Access these files offline using Liferay Sync"

thumbnail
Ryan Terwedo,修改在12 年前。

Remove "Access these files offline using Liferay Sync"

Junior Member 帖子: 94 加入日期: 08-10-31 最近的帖子
Anyone know how to remove this little blue box from doc lib?

1) I don't want my users installing software

2) We can't change the sync tool yet to even do things like change the help or contact info
-A user won't know who liferay is
-It will be confusing from a branding standpoint, because liferay will not answer a end users questions

3) I can't support this right now


Help! =)

Ryan
thumbnail
André Bunse,修改在12 年前。

RE: Remove "Access these files offline using Liferay Sync"

Junior Member 帖子: 85 加入日期: 12-3-16 最近的帖子
Hi Ryan,

an easy way is to modify the file "%TOMCAT_HOME%\webapps\ROOT\html\themes\control_panel\js\main.js".

insert in method "_renderUI" (352ff for Liferay 6.1)

var syncNotification = A.one('.sync-notification');
syncNotification && syncNotification.hide();

this works for me

EDIT:

another way was to modify "%TOMCAT_HOME%\webapps\ROOT\html\portlet\document_library\css\main.css"
and add "display: none;"

		.sync-notification {
			display: none;
			border-top-width: 1px;
		}


Second way is better, cause with way one the user see the message disappear

HTH
André
thumbnail
Ryan Terwedo,修改在12 年前。

RE: Remove "Access these files offline using Liferay Sync"

Junior Member 帖子: 94 加入日期: 08-10-31 最近的帖子
Thanks guys, will implement!
thumbnail
Hitoshi Ozawa,修改在12 年前。

RE: Remove "Access these files offline using Liferay Sync"

Liferay Legend 帖子: 7942 加入日期: 10-3-24 最近的帖子
It's possible to just blank out the message in language_xx.properties, but that'll leave an empty space.
I think I've answered this question before. I think I justed deleted lines #223 through 229 in tomcat-7.0.23\webapps\ROOT\html\portlet\document_library\view_entries.jsp

<div class="portlet-msg-info sync-notification">
<a href="http://www.liferay.com/products/liferay-sync" target="_blank">
<liferay-ui:message key="access-these-files-offline-using-liferay-sync" />
</a>
</div>
</c:when>
Brian Cohen,修改在11 年前。

RE: Remove "Access these files offline using Liferay Sync"

Junior Member 帖子: 25 加入日期: 12-5-4 最近的帖子
do we need to remove both the opening and closing
?

So do we remove completely (or comment out) the following:

 <c:when test="<%= System.currentTimeMillis() > 1328126400000L %>">
                <div class="portlet-msg-info sync-notification">
                        <a href="http://www.liferay.com/products/liferay-sync" target="_blank">
                                <liferay-ui:message key="access-these-files-offline-using-liferay-sync" />
                        </a>
                </div>
        </c:when>


Or only remove the div class?

Sorry, I am a novice at JSP emoticon
thumbnail
Hitoshi Ozawa,修改在11 年前。

RE: Remove "Access these files offline using Liferay Sync"

Liferay Legend 帖子: 7942 加入日期: 10-3-24 最近的帖子
Yes, remove the entire <c:when ...> block and the line number was actually #199 through #205

<c:when test="<%= System.currentTimeMillis() > 1328126400000L %>">
<div class="portlet-msg-info sync-notification">
<a href="http://www.liferay.com/products/liferay-sync" target="_blank">
<liferay-ui:message key="access-these-files-offline-using-liferay-sync" />
</a>
</div>
</c:when>
thumbnail
Brett Lewinski,修改在8 年前。

RE: Remove "Access these files offline using Liferay Sync"

Junior Member 帖子: 54 加入日期: 11-5-4 最近的帖子
Why not use
dl.show.liferay.sync.message=false
in portal-ext.properties
thumbnail
David H Nebinger,修改在8 年前。

RE: Remove "Access these files offline using Liferay Sync"

Liferay Legend 帖子: 14919 加入日期: 06-9-2 最近的帖子
Could be because this thread is over 3 years old and the property didn't exist when it started.