如何更改plone中Table的内容级别?
How to change the level of Table Of Contents in plone?
如何自定义 plone 中 Table 目录中显示的级别数?
Plone 默认在 TOC 中显示三个级别(从 H2 到 H4)。如何自定义它以显示三个以上?我在任何地方都找不到生成目录的代码
Ulrich 是正确的,目录是由 toc.js 脚本在浏览器中生成的。如果您有权访问 ZMI,您可以在 portal_skins/plone_ecmascript/toc.js
中找到它,然后您可以在 custom
文件夹中复制它。
深度限制在第19行:
$(content).find('*').not('.comment > h3').filter(function() { return (/^h[1234]$/).test(this.tagName.toLowerCase()); })
您可以在 regex
上加一个 5(甚至 6),这可能就是全部了。
如何自定义 plone 中 Table 目录中显示的级别数?
Plone 默认在 TOC 中显示三个级别(从 H2 到 H4)。如何自定义它以显示三个以上?我在任何地方都找不到生成目录的代码
Ulrich 是正确的,目录是由 toc.js 脚本在浏览器中生成的。如果您有权访问 ZMI,您可以在 portal_skins/plone_ecmascript/toc.js
中找到它,然后您可以在 custom
文件夹中复制它。
深度限制在第19行:
$(content).find('*').not('.comment > h3').filter(function() { return (/^h[1234]$/).test(this.tagName.toLowerCase()); })
您可以在 regex
上加一个 5(甚至 6),这可能就是全部了。