在我的 Plone 4 应用程序中动态加载 MathJax 时出现性能问题。因此,我在https://github.com/collective/collective.mathjax找到了 Plone 集成,并且,正如我注意到的那样,它分叉了它,效果很好;我包含了当前的 MathJax 2.3 并更改了配置文件以使用“本地”副本。
现在我想知道是否可以通过在Plone QuickInstaller Toolrackcdn.com
中安装产品时选择配置文件来在“在线”/“远程”行为(从 加载所有内容)和“默认”行为(使用包含的副本)之间进行选择。
我改变了configure.zcml
这样的:
<configure
xmlns="http://namespaces.zope.org/zope"
xmlns:browser="http://namespaces.zope.org/browser"
xmlns:genericsetup="http://namespaces.zope.org/genericsetup"
i18n_domain="collective.mathjax">
<browser:resourceDirectory
name="mathjax"
directory="resources/MathJax" />
<genericsetup:registerProfile
name="default"
title="collective.mathjax: default"
directory="profiles/default"
description="collective.mathjax default profile: Includes MathJax 2.3."
provides="Products.GenericSetup.interfaces.EXTENSION" />
<genericsetup:registerProfile
name="online"
title="collective.mathjax: online"
directory="profiles/online"
description="collective.mathjax online profile: Load MathJax dynamically from rackcdn.com."
provides="Products.GenericSetup.interfaces.EXTENSION" />
</configure>
不幸的是,我在 QuickInstaller 中看不到“在线”配置文件,即使在卸载产品并更改版本号之后也是如此。
更新:在控制台输出中,我发现以下文本:
信息 CMFQuickInstallerTool 为产品找到多个扩展配置文件
collective.mathjax
。使用的配置文件:collective.mathjax:default
是否存在一些根本性的误解,或者我能做些什么让人们选择?