如何从Liferay 7中的页面删除aui.css [英] How to delete aui.css from pages in Liferay 7
问题描述
如何在Liferay 7中为自定义页面禁用aui.css.是否可以通过portal-notmal.ftl
How to disable aui.css for custom pages in Liferay 7. Is it possible to do this somehow via portal-notmal.ftl
推荐答案
aui.css通过样式化主题,以及经典主题(在同一个github存储库中,您都可以找到它).
aui.css is coming in through the unstyled theme, which typically is the basis for every theme there is. That being said, you can override it and remove it this way. It's refined in the styled theme, and also in the classic theme (in the same github repo, you'll find it).
如果这样做,请注意,您仍然必须自己处理很多格式-将生成类和其他DOM元素,但是aui看起来现在包括了Lexicon CSS必须模拟一下是否要摆脱它.为什么要这样做,而不是接受默认设置并覆盖您不喜欢的内容,所以超出了我的范围.
If you do so, note that you'll still have to deal with a lot of formatting on your own - the classes and other DOM elements will be generated, but it looks like aui now includes the Lexicon CSS that you'll have to simulate if you get rid of it. Why you'd want to do so, instead of accepting the defaults and overriding what you don't like, is beyond me.
编辑,回答您的评论:
您只需创建自己的主题(此处链接到7.1,请参见下文),其中包含您想要的所有替代项.没有一个带有选项的文件,因为此配置文件太复杂且难以管理.
You'd simply create your own theme (Linking to 7.1 here, see below) with any overrides that you'd like to have. There's not a single file with an option, as this configuration file would be too complex and unmanageable.
此外,您听起来好像刚刚开始构建网站-我的建议是始终使用最新版本并使用7.1(此时),并注意7.2即将来临,Beta 3刚刚发布已发布
Also, you sound like you've just started building your site - my recommendation would be to always go with the latest release and use 7.1 (at this time) and note that 7.2 is around the corner, Beta 3 has just been released
这篇关于如何从Liferay 7中的页面删除aui.css的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!