Liferay 7.0-默认情况下,通过主题将所有Portlet设置为无边界 [英] Liferay 7.0 - making all Portlets Borderless by default via theme

查看:101
本文介绍了Liferay 7.0-默认情况下,通过主题将所有Portlet设置为无边界的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在通过主题找到设置Portlet默认外观的问题的解决方案之后,我在WEB-INF/liferay-look-and-feel.xml中尝试了以下方法:

After searching for a solution to the problem of setting portlets default look and feel through the theme, I have tried the following in WEB-INF/liferay-look-and-feel.xml:

<setting configurable="true"
         key="portlet-setup-show-borders-default"
         type="checkbox"
         value="false"
/>

但是,它似乎无法在Liferay 7.0 GA3上运行,并且已经没有足够的空间来寻找解决方案了.

However, it does not seem to work on Liferay 7.0 GA3, and have run out of places to look for a solution.

我的要求是对默认portlet进行行为控制,其中禁用了所有功能,即边框和标题以及其他内容.

My requirements are for a default portlet behavious where all decaration is disabled, i.e. borders and title and whatever else.

值得一提的是,我正在使用新的主题生成器/Gulp构建管道.任何指针都值得赞赏.

Worth mentioning that I'm using the new theme generator/Gulp build pipeline. Any pointers much appreciated.

推荐答案

万一其他人遇到这个问题,此功能已被Liferay 7中的Portlet Decorators取代.您可以在文档中阅读有关此内容的更多信息: https://dev.liferay.com/develop/tutorials/-/knowledge_base/7-0/portlet-decorators

In case anyone else stumbles upon this question, this feature has been replaced with Portlet Decorators in Liferay 7. You can read more about this in the documentation: https://dev.liferay.com/develop/tutorials/-/knowledge_base/7-0/portlet-decorators

这篇关于Liferay 7.0-默认情况下,通过主题将所有Portlet设置为无边界的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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