我们如何才能删除该Liferay徽标,登录超链接并提供技术支持?从屏幕上 [英] how can we remove that Liferay Logo , Sign In Hyperlinkand Powered BY ?? from the screen

查看:98
本文介绍了我们如何才能删除该Liferay徽标,登录超链接并提供技术支持?从屏幕上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Liferay 6和Tomcat进行开发. 我已经为我的应用程序开发了一个自定义登录POrtlet

I am using Liferay 6 and Tomcat for development . I have developed a Custom Login POrtlet for my Application

现在输入 http://localhost:8086 时,将显示我的自定义登录页面.

Now on entering http://localhost:8086 , my Custom Login Page is displayed .

请查看屏幕截图.

我的问题是,任何人都可以告诉我如何删除该Liferay徽标,登录超链接(右上角至上)和Powered BY吗?从屏幕上.

My question is , could anybody tell me how can we remove that Liferay Logo , Sign In Hyperlink ( Extreme right top ) and Powered BY ?? from the screen .

推荐答案

实际上,可以在不创建主题的情况下更改徽标.但是,其他项目需要使用cusotm主题(您将要在其中编辑力度宏).对于徽标,请在控制面板">门户">门户设置"下查看,然后单击右侧的显示设置".

Actually the Logo can be changed without creating a theme. The other items require a cusotm theme however (where you will want to edit the velocity macros). For the logo look under Control Panel > Portal > Portal Settings and then click "Display Settings" on the right side.

此外,您还可以为基本主题提供少量的CSS,但这充其量应该只是一个临时的技巧.转到管理">页面布局">公共页面",然后在底部可以看到带有标签的CSS部分,您可以执行以下操作:

Additionally you can also provide a small amount of css to the basic theme as well, but this should be considered a temporary hack at best. Go to Manage > Page Layout > Public Pages and at the bottom you will see a section labled CSS in there you can do:

#sign-in { display: none }
.powered-by { display:none }

但是请记住,使用Firebug或类似工具的用户仍然可以通过更改Firebug中的CSS来公开旧版登录,并且Liferay标记行仍在源代码中,因此仅对非技术人员隐藏.主题确实是正确的解决方案.

But bear in mind that a user with firebug or similar tools can still expose the old sign-in by changing the CSS in firebug and the Liferay tag line is still in the source so it's only hidden from non-technical folks. A theme is really the right solution.

这篇关于我们如何才能删除该Liferay徽标,登录超链接并提供技术支持?从屏幕上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆